Skip to content

Commit

Permalink
try to fix gh deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed May 20, 2024
1 parent b8ccc0c commit 6edc04a
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/build-hash-router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,32 @@ jobs:
with:
path: website/build

# See https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
deploy:
name: Deploy to GitHub Pages
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }}
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# if: ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "gh-actions"
yarn workspace website deploy --skip-build
env:
USE_SSH: true

## TODO we should be able to use this new deploy-pages action
## However this requires a Meta admin to configure it here
## https://github.com/facebook/docusaurus/settings/pages
## So for now we keep using the former method
## See https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
#deploy:
# name: Deploy to GitHub Pages
# if: ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }}
# needs: build
# permissions:
# pages: write
# id-token: write
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4

0 comments on commit 6edc04a

Please sign in to comment.