chore: merge release-v0.3.4 into main #21
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: Release CI | |
on: | |
push: | |
tags: 'v[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
#################################### | |
## Build binaries for release page # | |
#################################### | |
- name: install rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
- name: install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
# Build for Pi Zero W | |
- name: build arm-unknown-linux-musleabihf | |
run: cross build --target arm-unknown-linux-musleabihf --release | |
- name: compress armv6 binary | |
run: tar -C target/arm-unknown-linux-musleabihf/release -czf ./belugasnooze_linux_armv6.tar.gz belugasnooze | |
################### | |
## Create release # | |
################### | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ github.ref }} | |
name: ${{ github.ref_name }} | |
body_path: ".github/release-body.md" | |
draft: false | |
files: | | |
belugasnooze_linux_armv6.tar.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |