v0.2.1 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
release: | |
types: [created] | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-and-upload: | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.release.tag_name, 'v') | |
steps: | |
- name: Checkout to the latest version | |
uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Test | |
run: cargo test --all | |
- name: Publish to crates.io | |
run: cargo publish --token ${{ secrets.CRATES_TOKEN }} | |
- name: Install cargo deb | |
run: cargo install cargo-deb | |
- name: Build .deb package | |
run: cargo deb | |
- name: Upload artifacts to release | |
uses: AButler/[email protected] | |
with: | |
files: "./target/debian/*.deb" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |