From aa845779b487b678df8e31c523f6fcbc3754bb4b Mon Sep 17 00:00:00 2001 From: Musselman Date: Sat, 16 Dec 2023 17:59:07 -0600 Subject: [PATCH] Test github actions type workflow --- .forgejo/workflows/demo.yaml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index d470cda..5f16329 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -1,6 +1,30 @@ -on: [push] +name: Build and Publish Rust Binary + +on: + push: + tags: + - '*' + jobs: - test: - runs-on: docker + build: + + runs-on: ubuntu-latest + steps: - - run: echo All Good + - 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 +