docs: Create rust.yml
This commit is contained in:
parent
58d566f0aa
commit
3a3feee0e3
1 changed files with 42 additions and 0 deletions
42
.github/workflows/rust.yml
vendored
Normal file
42
.github/workflows/rust.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: cargo build --release --verbose --color always
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
changelog:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Conventional
|
||||
id: changelog
|
||||
uses: TriPSs/conventional-changelog-action@v4
|
||||
with:
|
||||
github-token: ${{ secrets.CHANGELOG_RELEASE }}
|
||||
- name: Release
|
||||
- uses: actions/create-release@v1
|
||||
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}
|
||||
with:
|
||||
tag_name: ${{ steps.changelog.outputs.tag }}
|
||||
release_name: ${{ steps.changelog.outputs.tag }}
|
||||
body: ${{ steps.changelog.outputs.clean_changelog }}
|
Loading…
Add table
Add a link
Reference in a new issue