Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ name: Build

permissions:
contents: read
pages: write
id-token: write

on:
push:
Expand Down Expand Up @@ -54,11 +52,4 @@ jobs:
with:
name: website-build-${{ github.run_id }}
path: ${{ env.BUILD_PATH }}
retention-days: 1

# Upload for GitHub Pages (main branch only)
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.BUILD_PATH }}
retention-days: 1
13 changes: 13 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: website-build-${{ github.event.workflow_run.id }}
path: website-build
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: website-build

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