Skip to content

Commit

Permalink
CI: Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fkleon committed Apr 30, 2024
1 parent d757ac2 commit 0d6c0be
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release the app to GitHub pages

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact
with:
path: build/dist/

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

0 comments on commit 0d6c0be

Please sign in to comment.