From 8dc1e79c7c37675d83ea7b1bd734b825eb57950d Mon Sep 17 00:00:00 2001 From: Justine Pelletreau Date: Mon, 17 Jul 2023 11:48:24 +0200 Subject: [PATCH] Actions 8 release test --- .gitea/workflows/release.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..cac8265 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,44 @@ +name: Rust-release + +on: + push: + branches: + - "main" + +jobs: + build: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + + - name: Check-out + uses: actions/checkout@v3 + + - name: Install stable toolchain + uses: https://github.com/actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Run cargo check + uses: https://github.com/actions-rs/cargo@v1 + with: + command: check + + - name: Test + run: cargo test + + - name: Build + run: cargo build --release + + - name: Release + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: ./target/release/hangman + title: auto-release + body: This is an automated release. + pre-release: true + api-key: '${{secrets.RELEASE_TOKEN}}'