From 2a90764e9c3e7bb414a5a67c3436a414936433ee Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Thu, 27 May 2021 08:31:49 +0200 Subject: [PATCH] feat: add release workflow --- .github/workflows/release.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 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..7a0b065 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: Release + +on: + push: + tags: + - "*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: | + cd webui/ + npm install + + - name: Build webui + run: | + cd webui/ + npm run build + + - name: Zip webui release + run: | + cd webui/build/ + zip -r ../../webui.zip . + + - name: Release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: | + webui.zip + LICENSE