Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
add deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Nov 10, 2023
1 parent f74cae7 commit 62c5235
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
run: git add src && git diff-index --cached HEAD --exit-code src
- run: pnpm circular
- run: pnpm docgen
- name: Test Upload Pages Artifact
- name: Upload pages artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2
with:
path: docs/
Expand All @@ -40,3 +41,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
permissions:
pages: write # To deploy to GitHub Pages
id-token: write # To verify the deployment originates from an appropriate source
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 62c5235

Please sign in to comment.