2023-12-16 17:59:07 -06:00
|
|
|
name: Build and Publish Rust Binary
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
2023-12-16 14:29:06 -06:00
|
|
|
jobs:
|
2023-12-16 17:59:07 -06:00
|
|
|
build:
|
|
|
|
|
2023-12-16 17:59:56 -06:00
|
|
|
runs-on: docker
|
2023-12-16 17:59:07 -06:00
|
|
|
|
2023-12-16 14:29:06 -06:00
|
|
|
steps:
|
2023-12-16 17:59:07 -06:00
|
|
|
- name: Set up Rust
|
|
|
|
uses: actions/setup-rust@v1
|
|
|
|
with:
|
|
|
|
rust-version: stable
|
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build binary
|
|
|
|
run: cargo build --release
|
|
|
|
|
|
|
|
- name: Publish binary
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: version_name_generator
|
|
|
|
path: ./target/release/version_name_generator
|
|
|
|
|