version_name_generator/.forgejo/workflows/build-and-release.yml
2023-12-16 20:19:02 -06:00

17 lines
501 B
YAML

name: Build and Publish Rust Binary
on: [push]
jobs:
build:
runs-on: docker
steps:
- name: Set up Rust
uses: msrd0/rust-toolchain@nightly
- name: Check out code
uses: actions/checkout@v4
- name: Build binary
run: cargo build --release
- name: Publish binary
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: /workspace/musselman/version_name_generator/target/release/version_name_generator