Skip to content

Commit

Permalink
fix: add github pages deploy to build ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Jan 31, 2024
1 parent f998e5a commit d86986b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,35 @@ jobs:

- name: Build
run: yarn build

deploy-page:
needs: build
runs-on: ubuntu-latest

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

defaults:
run:
working-directory: gh-pages

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

steps:
- uses: actions/checkout@v3

- name: Install + Build
run: docker-compose up page-build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: gh-pages/out

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

0 comments on commit d86986b

Please sign in to comment.