Skip to content

Commit

Permalink
[ci] Add deploy job to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Jul 31, 2024
1 parent 9a34fd4 commit 1c15779
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./output

deploy:
if: github.ref == 'refs/heads/master'
permissions:
contents: read
pages: write
id-token: write

runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy artifact
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 1c15779

Please sign in to comment.