Skip to content

Commit

Permalink
GitHub: setup pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SalimTerryLi committed Feb 10, 2025
1 parent 532a470 commit 60cde97
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,21 @@ jobs:
with:
name: frontend
path: dist
deploy_pages:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/gh-action-setup'
needs: build_dist
steps:
- name: Fetch pre-built pages
uses: actions/download-artifact@v4
with:
name: frontend
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload page artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 60cde97

Please sign in to comment.