Skip to content

Commit

Permalink
chore(ci): release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc committed Jan 28, 2024
1 parent 6036dd1 commit 4c73502
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- v*

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
needs: create-release
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: cupido
tar: unix
zip: windows
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4c73502

Please sign in to comment.