From f53db91118a0942469ac4173d06804dd224be007 Mon Sep 17 00:00:00 2001 From: Luke Harding Date: Tue, 30 Apr 2024 13:52:23 -0400 Subject: [PATCH] Update README and add gitea workflow --- .gitea/workflows/build-on-release.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build-on-release.yaml b/.gitea/workflows/build-on-release.yaml index 85e0b87..264e9e0 100644 --- a/.gitea/workflows/build-on-release.yaml +++ b/.gitea/workflows/build-on-release.yaml @@ -1,13 +1,22 @@ name: Build on Release run-name: ${{ gitea.actor }} -on: [ release ] +on: + push: + branches: + - main jobs: cargo-build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-rust steps: - name: Check out code repository - uses: actions/checkout@v4 - - name: Is cargo installed? + uses: https://gitea.com/actions/checkout@v4 + - name: Build Binary run: | - which cargo \ No newline at end of file + cargo build --release + - name: Push binary to artifact + uses: https://gitea.com/actions/gitea-release-action@v1 + with: + draft: true + files: |- + target/release/rust-archlinux-update \ No newline at end of file