Skip to content

Commit

Permalink
ci(github-actions): add GitHub Actions workflow to create GitHub Release
Browse files Browse the repository at this point in the history
  • Loading branch information
hituzi-no-sippo authored and anordal committed Mar 3, 2024
1 parent 473239a commit 00e6d8e
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/create-gh-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Create GitHub release

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

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v1

upload-assets:
needs: create-release

strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: shellharden
target: ${{ matrix.target }}
archive: shellharden-$target
checksum: sha512
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 00e6d8e

Please sign in to comment.