Actions 8 release test
This commit is contained in:
parent
3c9f979cfe
commit
8dc1e79c7c
44
.gitea/workflows/release.yml
Normal file
44
.gitea/workflows/release.yml
Normal file
@ -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}}'
|
Loading…
x
Reference in New Issue
Block a user