From 8b19c4cc6a9594a66c71de980c360c435fe9487a Mon Sep 17 00:00:00 2001 From: LuisLiraC Date: Sat, 14 Sep 2024 10:28:08 -0600 Subject: [PATCH] release on tag --- .github/workflows/release.yaml | 5 +++-- action.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e967e54..6cfdae3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,11 +1,12 @@ name: Release Binary on: - create: + push: + tags: + - 'v*' jobs: build-artifacts: - if: ${{ startsWith(github.ref, 'refs/tags/v') }} runs-on: ubuntu-latest name: Build Artifacts env: diff --git a/action.yaml b/action.yaml index d4c9d66..4241b17 100644 --- a/action.yaml +++ b/action.yaml @@ -17,7 +17,7 @@ runs: - name: Get Binary shell: bash run: | - BIN_URL=$(curl https://api.github.com/repos/LuisLiraC/git-diff/releases/tags/v1.0.0 | jq -r '.assets[0].browser_download_url') + BIN_URL=$(curl https://api.github.com/repos/LuisLiraC/git-diff/releases/latest | jq -r '.assets[0].browser_download_url') curl -s -L $BIN_URL -o rust-binary.tgz tar -xzvf rust-binary.tgz mv ./Linux/git-diff ./git-diff