This commit is contained in:
DavidOnTop 2025-02-27 17:47:53 +01:00
parent f4ee184734
commit 4c51adb903
Signed by: DavidOnTop
GPG key ID: 8D3E9A75E3E13D89
3 changed files with 106 additions and 15 deletions

33
.github/workflows/ci.yaml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Release
on:
push:
tags:
- '*'
env:
binary: rust-template
jobs:
release-linux:
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/get-tag@v2.1.2
id: get_version
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-unknown-linux-gnu
- name: Build
run: |
cargo build --release --target x86_64-unknown-linux-gnu
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/x86_64-unknown-linux-gnu/release/${{ env.binary }}
asset_name: ${{ env.binary }}
tag: ${{ github.ref }}
overwrite: true