From 73b5b23d78fb2823ea142ced2b2b1de94f46b04a Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Wed, 26 Jun 2024 22:35:40 -0400 Subject: [PATCH] Update build-macos.yml --- .github/workflows/build-macos.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 9f4814e..10bb679 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -4,8 +4,12 @@ permissions: contents: write on: - schedule: - - cron: "0 0 * * *" + push: + paths: + - "VERSION" + branches: + - main + workflow_dispatch: jobs: build: @@ -55,10 +59,15 @@ jobs: if-no-files-found: error compression-level: 9 + - name: Get version tag + run: | + VERSION=$(cat VERSION) + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Release uses: softprops/action-gh-release@v2 with: files: | Picocrypt.dmg - tag_name: nightly + tag_name: ${{ env.VERSION }} make_latest: true