doc: Update rust.yml
This commit is contained in:
parent
69ff6cf993
commit
2d27c3c018
1 changed files with 23 additions and 30 deletions
53
.github/workflows/rust.yml
vendored
53
.github/workflows/rust.yml
vendored
|
@ -10,38 +10,31 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelog:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
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 }}
|
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
steps:
|
contents: write
|
||||||
- uses: actions/checkout@v3
|
steps:
|
||||||
- name: Build
|
- uses: actions/checkout@v3
|
||||||
run: cargo build --verbose
|
- name: Build
|
||||||
- name: Run tests
|
run: cargo build --verbose
|
||||||
run: cargo test --verbose
|
- name: Run tests
|
||||||
|
run: cargo test --verbose
|
||||||
|
- 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