Skip to content

Commit

Permalink
Switch back to branch-specifc gh pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Dec 29, 2023
1 parent 5ca139e commit 90e1bfa
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/publish-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,8 @@ jobs:
BASE_PATH: '/${{ github.event.repository.name }}'
run: npm run build

- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
- name: Upload Build
uses: JamesIves/github-pages-[email protected]
with:
# this should match the `pages` option in your adapter-static options
path: 'build/'

deploy:
needs: build_site
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2
branch: gh-pages # The branch the action should deploy to.
folder: ./build/ # The folder the action should deploy.

0 comments on commit 90e1bfa

Please sign in to comment.