Skip to content

Commit

Permalink
chore: Refactor binary release process
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchalifoux committed May 11, 2024
1 parent 13db120 commit 7e442bd
Showing 1 changed file with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
name: Upload Binary
name: Upload Binaries

permissions:
contents: write

on:
push:
tags:
- v*
release:
types: [published]

env:
CARGO_TERM_COLOR: always

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
# changelog: CHANGELOG.md
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
upload-binaries:
strategy:
matrix:
include:
Expand Down Expand Up @@ -51,6 +39,7 @@ jobs:
# Note that glob pattern is not supported yet.
bin: kaput
# (optional) Target triple, default is host triple.
archive: $bin-$tag-$target
target: ${{ matrix.target }}
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7e442bd

Please sign in to comment.