From 25346d6d77c78cbc27a22bb7d54219340eae8da2 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 29 May 2024 00:22:49 +1200 Subject: [PATCH] setup building for tags --- .github/workflows/build.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f946ccf..3cef4b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,9 @@ name: Build and Release on: - workflow_dispatch: + push: + tags: + - '*' jobs: @@ -38,9 +40,10 @@ jobs: with: draft: true allowUpdates: true - name: "test release" - commit: "master" - tag: "master" + replacesArtifacts: true + omitDraftDuringUpdate: true + omitNameDuringUpdate: true + name: v${{github.ref_name}} artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe" build_mac: @@ -76,7 +79,8 @@ jobs: with: draft: true allowUpdates: true - name: "test release" - commit: "master" - tag: "master" + replacesArtifacts: true + omitDraftDuringUpdate: true + omitNameDuringUpdate: true + name: v${{github.ref_name}} artifacts: "dist/*-mac.dmg"