39 lines
880 B
YAML
39 lines
880 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
build_release:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
GITEA_SERVER: ${{ secrets.GITEA_SERVER }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
|
|
- name: Build release
|
|
run: |
|
|
cargo build --release
|
|
- name: Generate a changelog
|
|
uses: orhun/git-cliff-action@v4
|
|
id: git-cliff
|
|
with:
|
|
config: cliff.toml
|
|
args: --verbose --latest
|
|
github_token: ""
|
|
env:
|
|
OUTPUT: CHANGELOG.md
|
|
- uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
files: |-
|
|
target/release/chkr
|
|
body: ${{ steps.git-cliff.outputs.content }}
|