Skip to content

Commit

Permalink
GitHub action for publishing release
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-Yom committed May 29, 2022
1 parent 1fec720 commit 6dc4add
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
release-linux:
name: Build binaries (linux) and publish on crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal
components: rust-docs
- name: Build release
working-directory: hlbc-cli
run: cargo build --release
- name: Upload release artifact
uses: softprops/action-gh-release@v1
with:
files: target/release/hlbc-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-windows:
name: Build binaries (windows)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal
components: rust-docs
- name: Build release
working-directory: hlbc-cli
run: cargo build --release
- name: Upload release artifact
uses: softprops/action-gh-release@v1
with:
files: target/release/hlbc-cli.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6dc4add

Please sign in to comment.