Compare commits

...

2 commits

Author SHA1 Message Date
d6d52e7332 [SEMVER] 0.1.2
All checks were successful
Build and upload a binary on tag push / build-release (push) Successful in 3m53s
2023-09-15 23:22:21 -04:00
54dafee1f7 altered naming convention for actions 2023-09-15 23:21:50 -04:00
2 changed files with 8 additions and 6 deletions

View file

@ -15,13 +15,15 @@ jobs:
uses: https://github.com/dtolnay/rust-toolchain@stable uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build - name: Build
run: | run: |
export BIN_NAME="iss_locator"
export VER=$(awk -F "=" '/version/ {print $2}' Cargo.toml | grep -o -e '[0-9]*\.[0-9]*\.[0-9]*')
cargo build --release cargo build --release
mkdir release mkdir release
cp target/release/iss_locator release/iss_locator cp target/release/$BIN_NAME release/$BIN_NAME-$VER
chmod +x release/iss_locator chmod +x release/$BIN_NAME-$VER
xz --keep -9 release/iss_locator xz --keep -9 release/$BIN_NAME-$VER
shasum -a 256 release/iss_locator > release/iss_locator.sha256 shasum -a 256 release/$BIN_NAME-$VER > release/$BIN_NAME-$VER.sha256
shasum -a 256 release/iss_locator.xz > release/iss_locator.xz.sha256 shasum -a 256 release/$BIN_NAME-$VER.xz > release/$BIN_NAME-$VER.xz.sha256
- name: Upload release - name: Upload release
uses: actions/forgejo-release@v1 uses: actions/forgejo-release@v1
with: with:

View file

@ -1,6 +1,6 @@
[package] [package]
name = "iss_locator" name = "iss_locator"
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html