From 035bb268aa223808207521059153ea7d06b0c363 Mon Sep 17 00:00:00 2001 From: Frederik Leonhardt Date: Tue, 30 Apr 2024 21:37:36 +1200 Subject: [PATCH] CI: Add release workflow --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cb46fe3 --- /dev/null +++ b/.github/workflows/release.yml @@ -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@v3 + 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