Skip to content

Commit

Permalink
Create workflow for GH Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehorvat committed Feb 20, 2024
1 parent ea6a01c commit de3a209
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow deploys the repository to GitHub Pages when master branch is updated.

name: Deploy to GitHub Pages
on:
push:
branches: [master]
permissions:
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
- uses: actions/upload-pages-artifact@v1
with:
path: dist
- uses: actions/deploy-pages@v2

0 comments on commit de3a209

Please sign in to comment.