version_name_generator/.forgejo/workflows/build-and-release.yml

18 lines
461 B
YAML
Raw Normal View History

2023-12-16 23:59:07 +00:00
name: Build and Publish Rust Binary
2023-12-17 00:10:06 +00:00
on: [push]
2023-12-16 20:29:06 +00:00
jobs:
2023-12-16 23:59:07 +00:00
build:
2023-12-16 23:59:56 +00:00
runs-on: docker
2023-12-17 01:52:36 +00:00
container:
2023-12-17 01:53:55 +00:00
image: rust:latest
2023-12-16 20:29:06 +00:00
steps:
2023-12-16 23:59:07 +00:00
- name: Check out code
2023-12-17 00:28:36 +00:00
uses: actions/checkout@v4
2023-12-16 23:59:07 +00:00
- name: Build binary
run: cargo build --release
- name: Publish binary
2023-12-17 00:42:56 +00:00
uses: actions/upload-artifact@v3
2023-12-16 23:59:07 +00:00
with:
name: version_name_generator
2023-12-17 00:51:55 +00:00
path: /workspace/musselman/version_name_generator/target/release/version_name_generator