From 6487aebc1494ab0ae1e0bad3970685e6952fa2f3 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 11 Jul 2021 09:11:48 +0200 Subject: [PATCH] :bug: fix publish release action --- .github/workflows/release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da6e5f4a..673c37a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,17 @@ -on: push +on: + workflow_dispatch: + push: + # Sequence of patterns matched against refs/tags + tags: + - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Publish Release + jobs: insiders-build: strategy: matrix: - os: [windows-latest, macos-latest, ubuntu-latest] + os: [windows, macos, ubuntu] include: - os: windows build: npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/lib/index.js" --output "Fosscord-server-windows-${{ github.sha }}.exe" @@ -18,7 +26,7 @@ jobs: npx caxa --directory . --command "{{caxa}}/node_modules/.bin/node" "{{caxa}}/lib/index.js" --output "fosscord" tar -czf "fosscord-server-linux-${{ github.sha }}.tgz" "fosscord" artifact: fosscord-server-linux-${{ github.sha }}.tgz - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1