From 0078481828c46afd0431919acbf11ee488cbd3ed Mon Sep 17 00:00:00 2001 From: BluemediaDev Date: Sat, 14 Jun 2025 21:09:09 +0000 Subject: [PATCH] Add workflow for release publishing --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..103791a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Publish release +on: + push: + tags: + - 'v*.*.*' + +permissions: + contents: write + +jobs: + release: + name: Release pushed tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x + - name: Clean install dependencies and build + run: | + npm ci + npm run build + - name: Create output zip + run: cd build; zip -r ../fancy-gatus-${{ github.ref_name }}.zip * + - name: Publish Release + uses: softprops/action-gh-release@v2 + with: + name: Fancy Gatus ${{ github.ref_name }} + body_path: ${{ github.workspace }}/CHANGELOG.md + files: fancy-gatus-${{ github.ref_name }}.zip + fail_on_unmatched_files: true