rust-tcp-file-transfer/.github/workflows/rust.yml
2023-09-17 10:06:44 +03:00

39 lines
911 B
YAML

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
uses: TriPSs/conventional-changelog-action@v4
with:
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}
- name: Release
uses: actions/create-release@v1
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 }}