name: Rust-release on: push: tags: - '*' jobs: build-release: runs-on: ubuntu-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}}'