2023-09-14 05:41:32 +00:00
|
|
|
|
|
|
|
name: Build and upload a binary on tag push
|
2023-09-14 05:49:13 +00:00
|
|
|
on: [push]
|
2023-09-14 04:38:22 +00:00
|
|
|
|
2023-09-14 04:03:50 +00:00
|
|
|
jobs:
|
2023-09-14 14:11:12 +00:00
|
|
|
build-release:
|
2023-09-14 04:38:22 +00:00
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-09-14 04:56:55 +00:00
|
|
|
- name: Setup toolchian
|
|
|
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
2023-09-14 04:38:22 +00:00
|
|
|
- name: Build
|
2023-09-14 14:07:00 +00:00
|
|
|
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
|
2023-09-14 04:38:22 +00:00
|
|
|
- name: Upload release
|
|
|
|
uses: actions/forgejo-release@v1
|
|
|
|
with:
|
2023-09-14 05:06:41 +00:00
|
|
|
direction: upload
|
2023-09-14 04:38:22 +00:00
|
|
|
url: https://git.technoduck.me
|
|
|
|
token: ${{secrets.app_token}}
|
2023-09-14 05:41:32 +00:00
|
|
|
verbose: true
|
2023-09-14 04:38:22 +00:00
|
|
|
|
|
|
|
|