Skip to content

v0.2.1

v0.2.1 #12

Workflow file for this run

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 }}