chore: Release confmg version 2.0.0 #14
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: GitHub Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
target: x86_64-unknown-linux-musl | |
- name: Build | |
run: | | |
mkdir artifacts | |
cargo build --release --target x86_64-unknown-linux-musl | |
mv target/x86_64-unknown-linux-musl/release/confmg artifacts/confmg_x86_64_linux | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux | |
path: artifacts | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
target: x86_64-pc-windows-msvc | |
- name: Build | |
run: | | |
mkdir artifacts | |
cargo build --release --target x86_64-pc-windows-msvc | |
mv target/x86_64-pc-windows-msvc/release/confmg.exe artifacts/confmg_x86_64_windows.exe | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: windows | |
path: artifacts | |
upload-ghr: | |
runs-on: ubuntu-latest | |
needs: [build-linux, build-windows] | |
steps: | |
- uses: actions/download-artifact@v3 | |
- name: Move Artifacts | |
run: mv */* . | |
- name: Release | |
uses: fnkr/github-action-ghr@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GHR_PATH: . | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |