This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
chore: fix docs and add blank changelog #2
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: Create Release | |
on: | |
push: | |
tags: | |
- "*.**" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set env | |
id: env | |
run: | | |
echo ::set-output name=tag::${GITHUB_REF#refs/tags/} | |
echo ::set-output name=repository::${GITHUB_REPOSITORY/-} | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Build | |
run: cargo build --release | |
- name: Create Linux Release | |
if: matrix.os == 'ubuntu-latest' | |
id: create_linux_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./target/release/bercon | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Windows Release | |
if: matrix.os == 'windows-latest' | |
id: create_windows_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./target/release/bercon.exe | |
token: ${{ secrets.GITHUB_TOKEN }} |