mirror of
https://github.com/RussellChamp/tpw-roller.git
synced 2026-10-27 16:12:40 +00:00
Add GitHub Actions workflow for deployment
This commit is contained in:
1 parent
53a2d6354b
commit
d44b012a75
1 file changed
+34
@@ -0,0 +1,34 @@
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- run: yarn install
|
||||
- run: yarn build
|
||||
|
||||
- uses: actions/configure-pages@v4
|
||||
|
||||
- uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: public
|
||||
|
||||
- uses: actions/deploy-pages@v4
|
||||
id: deployment
|
||||
Reference in new issue
Block a user