Skip to content

Commit f651072

Browse files
authored
Merge pull request #18 from LuisLiraC/feat/release-on-tag
Release on tag
2 parents 85ff2ca + 8b19c4c commit f651072

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Release Binary
22

33
on:
4-
create:
4+
push:
5+
tags:
6+
- 'v*'
57

68
jobs:
79
build-artifacts:
8-
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
910
runs-on: ubuntu-latest
1011
name: Build Artifacts
1112
env:

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
- name: Get Binary
1818
shell: bash
1919
run: |
20-
BIN_URL=$(curl https://api.github.com/repos/LuisLiraC/git-diff/releases/tags/v1.0.0 | jq -r '.assets[0].browser_download_url')
20+
BIN_URL=$(curl https://api.github.com/repos/LuisLiraC/git-diff/releases/latest | jq -r '.assets[0].browser_download_url')
2121
curl -s -L $BIN_URL -o rust-binary.tgz
2222
tar -xzvf rust-binary.tgz
2323
mv ./Linux/git-diff ./git-diff

0 commit comments

Comments
 (0)