hopefully will work this time

This commit is contained in:
Techno Duck 2023-09-15 20:40:27 -04:00
parent ecd16b5f4d
commit 947af0ebdb

View file

@ -1,6 +1,6 @@
name: Build and upload a binary on tag push
on: [push]
on: [tag]
jobs:
build-release:
@ -13,17 +13,20 @@ jobs:
- name: Build
run: |
cargo build --release
cp target/release/iss_locator iss_locator
chmod +x iss_locator
mkdir release
cp target/release/iss_locator release/iss_locator
chmod +x release/iss_locator
xz --keep -9 iss_locator
shasum -a 256 iss_locator > iss_locator.sha256
shasum -a 256 iss_locator.xz > iss_locator.xz.sha256
mv iss_locator.xz release
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
uses: actions/forgejo-release@v1
with:
direction: upload
url: https://git.technoduck.me
token: ${{secrets.app_token}}
release-dir: release
verbose: true