Rename release.yml to .github/workflows/release.yml #1
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 and Test | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install depend | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libssl3 pkg-config | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build binary | |
run: | | |
cargo build --release | |
mv target/release/expander expander.bin | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: expander.bin |