Skip to content

Commit

Permalink
ci: deploy main to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Dec 16, 2023
1 parent d93b740 commit 7f351b0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,24 @@ jobs:
run: npm ci
- name: Build
run: npm run all
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
with:
path: 'public'
Deploy:
needs: Build
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

permissions:
pages: write
id-token: write

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

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3

0 comments on commit 7f351b0

Please sign in to comment.