altered naming convention for actions
This commit is contained in:
parent
b7856a5242
commit
54dafee1f7
1 changed files with 7 additions and 5 deletions
|
@ -15,13 +15,15 @@ jobs:
|
|||
uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||
- name: Build
|
||||
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
|
||||
mkdir release
|
||||
cp target/release/iss_locator release/iss_locator
|
||||
chmod +x release/iss_locator
|
||||
xz --keep -9 release/iss_locator
|
||||
shasum -a 256 release/iss_locator > release/iss_locator.sha256
|
||||
shasum -a 256 release/iss_locator.xz > release/iss_locator.xz.sha256
|
||||
cp target/release/$BIN_NAME release/$BIN_NAME-$VER
|
||||
chmod +x release/$BIN_NAME-$VER
|
||||
xz --keep -9 release/$BIN_NAME-$VER
|
||||
shasum -a 256 release/$BIN_NAME-$VER > release/$BIN_NAME-$VER.sha256
|
||||
shasum -a 256 release/$BIN_NAME-$VER.xz > release/$BIN_NAME-$VER.xz.sha256
|
||||
- name: Upload release
|
||||
uses: actions/forgejo-release@v1
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue