Skip to content

Commit

Permalink
fix(CI): release
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum committed Mar 13, 2022
1 parent 16b632c commit 1535c06
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 12 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
with:
toolchain: stable
target: x86_64-pc-windows-gnu
profile: minimal
default: true
- uses: Swatinem/rust-cache@v1
- run: make win
- uses: softprops/action-gh-release@v1
with:
files: dist/*.exe
release-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
with:
toolchain: stable
target: aarch64-apple-darwin
profile: minimal
default: true
- uses: Swatinem/rust-cache@v1
- run: make osx
- uses: softprops/action-gh-release@v1
with:
files: dist/*.dmg
13 changes: 1 addition & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
branches:
- master

permissions:
contents: write

jobs:
release-windows:
runs-on: windows-latest
Expand All @@ -24,10 +21,6 @@ jobs:
with:
name: windows-release
path: dist/*.exe
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: dist/*.exe
release-mac:
runs-on: macos-latest
steps:
Expand All @@ -44,8 +37,4 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: mac-release
path: dist/*.dmg
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: dist/*.dmg
path: dist/*.dmg

0 comments on commit 1535c06

Please sign in to comment.