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:
|
|
|
|
test:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- run: echo All Good here
|
2023-09-14 04:38:22 +00:00
|
|
|
release:
|
|
|
|
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
|
|
|
|
run: cargo build --release --verbose
|
|
|
|
- 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
|
2023-09-14 05:41:32 +00:00
|
|
|
release-dir: release
|
2023-09-14 04:38:22 +00:00
|
|
|
token: ${{secrets.app_token}}
|
2023-09-14 05:41:32 +00:00
|
|
|
verbose: true
|
2023-09-14 04:38:22 +00:00
|
|
|
|
|
|
|
|