change conditions for tags

This commit is contained in:
Techno Duck 2023-09-15 20:42:31 -04:00
parent 947af0ebdb
commit b2b9a4228e

View file

@ -1,6 +1,9 @@
name: Build and upload a binary on tag push name: Build and upload a binary on tag push
on: [tag] on:
push:
tags:
- 'v*'
jobs: jobs:
build-release: build-release:
@ -16,8 +19,7 @@ jobs:
mkdir release mkdir release
cp target/release/iss_locator release/iss_locator cp target/release/iss_locator release/iss_locator
chmod +x release/iss_locator chmod +x release/iss_locator
xz --keep -9 iss_locator xz --keep -9 release/iss_locator
mv iss_locator.xz release
shasum -a 256 release/iss_locator > release/iss_locator.sha256 shasum -a 256 release/iss_locator > release/iss_locator.sha256
shasum -a 256 release/iss_locator.xz > release/iss_locator.xz.sha256 shasum -a 256 release/iss_locator.xz > release/iss_locator.xz.sha256
- name: Upload release - name: Upload release