From 6b05c2315ba815cffb6f58f5a300ac35d0dfea8e 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..1a16ac7 --- /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 + 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