hopefully will work this time
This commit is contained in:
parent
ecd16b5f4d
commit
947af0ebdb
1 changed files with 9 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
name: Build and upload a binary on tag push
|
name: Build and upload a binary on tag push
|
||||||
on: [push]
|
on: [tag]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-release:
|
build-release:
|
||||||
|
@ -13,17 +13,20 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
cargo build --release
|
||||||
cp target/release/iss_locator iss_locator
|
mkdir release
|
||||||
chmod +x iss_locator
|
cp target/release/iss_locator release/iss_locator
|
||||||
|
chmod +x release/iss_locator
|
||||||
xz --keep -9 iss_locator
|
xz --keep -9 iss_locator
|
||||||
shasum -a 256 iss_locator > iss_locator.sha256
|
mv iss_locator.xz release
|
||||||
shasum -a 256 iss_locator.xz > iss_locator.xz.sha256
|
shasum -a 256 release/iss_locator > release/iss_locator.sha256
|
||||||
|
shasum -a 256 release/iss_locator.xz > release/iss_locator.xz.sha256
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
uses: actions/forgejo-release@v1
|
uses: actions/forgejo-release@v1
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://git.technoduck.me
|
url: https://git.technoduck.me
|
||||||
token: ${{secrets.app_token}}
|
token: ${{secrets.app_token}}
|
||||||
|
release-dir: release
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue