iss_locator.rs/.forgejo/workflows/rust.yaml
Techno Duck 9a918ed1fa
Some checks failed
Build and upload a binary on tag push / test (push) Successful in 1m19s
Build and upload a binary on tag push / release (push) Failing after 3m53s
more actions fixes
2023-09-14 10:07:00 -04:00

33 lines
851 B
YAML

name: Build and upload a binary on tag push
on: [push]
jobs:
test:
runs-on: docker
steps:
- run: echo All Good here
release:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup toolchian
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build
run: |
cargo build --release
cp target/release/iss_locator iss_locator
chmod +x 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
- name: Upload release
uses: actions/forgejo-release@v1
with:
direction: upload
url: https://git.technoduck.me
token: ${{secrets.app_token}}
verbose: true