Skip to content

Commit

Permalink
ci: add github pages deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jan 23, 2024
1 parent b3369ef commit 78ea42f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,28 @@ jobs:
run: |
yarn install
yarn build
- name: Push to Github Pages
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'
uses: actions/upload-pages-artifact@v1
with:
path: './dist'

deploy:
needs: build
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

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

0 comments on commit 78ea42f

Please sign in to comment.