Skip to content

docs: Update rust.yml #48

docs: Update rust.yml

docs: Update rust.yml #48

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Conventional
id: changelog_id
uses: TriPSs/conventional-changelog-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
id: release_id
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ secrets.GITHUB_TOKEN }}
release_name: ${{ github.event.release.tag_name }}
body: ${{ steps.changelog_id.outputs.clean_changelog }}