Skip to content

Commit

Permalink
Fix pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 2, 2023
1 parent 7fb9349 commit 004ebbc
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,29 @@ jobs:
run: pnpm i --frozen-lockfile
- name: Build website
run: pnpm build
- name: Upload artifacts
uses: actions/upload-artifact@v3
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
name: build
path: ./build
retention-days: 5

# https://github.com/actions/deploy-pages#usage
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [ build ]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Download artifact
id: download
uses: actions/download-artifact@v3
with:
name: build

- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: ${{ steps.download.outputs.download-path }}
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 004ebbc

Please sign in to comment.