From 1db961900ff24c5f251c699925a6975cda9c00e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Pern=C3=ADk?= Date: Mon, 1 Apr 2024 13:52:53 +0200 Subject: [PATCH] Add release GitHub Action --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..93873a3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Build and publish a release +on: + push: + tags: ["*"] +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + - name: Build the package + run: | + npm install + npm run build + rm -rf node_modules + - name: Archive the built package + uses: TheDoctor0/zip-release@0.7.6 + with: + type: zip + filename: release.zip + - name: Create a release and publish the archive + uses: ncipollo/release-action@v1.14.0 + with: + artifacts: release.zip + token: ${{ secrets.GITHUB_TOKEN }}