From ee1d53a15c43874dc5e935a2afd90c284bc0dab2 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sun, 25 Feb 2024 14:59:42 +0100 Subject: [PATCH] release amd --- .gitea/workflows/release_amd.yml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/release_amd.yml diff --git a/.gitea/workflows/release_amd.yml b/.gitea/workflows/release_amd.yml new file mode 100644 index 0000000..b0978b1 --- /dev/null +++ b/.gitea/workflows/release_amd.yml @@ -0,0 +1,41 @@ +name: Outbag + +on: [tag] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Install Dependencies + run: npm ci + + - name: Build + run: | + mkdir build + npm run bundleRelease + + - name: Build AMD + run: | + npm run build-amd + mkdir upload + cp build/bin/* upload + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.event.release.tag_name }} + release_name: ${{ github.event.release.name }} + draft: false + prerelease: true + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/release-action@main + with: + files: upload/* + api_key: '${{secrets.RELEASE_TOKEN}}'