Skip to content

Commit

Permalink
add separate workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Feb 2, 2024
1 parent ebf5647 commit f09a86b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/aicirt-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: AICIrt release

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

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
- run: rustup target add wasm32-wasi
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Release script
run: ./scripts/release.sh --xz
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: target/dist/README.md
files: |
target/dist/*.tar.gz
target/dist/*.tar.xz
10 changes: 0 additions & 10 deletions .github/workflows/aicirt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: AICIrt
on:
push:
branches: [ "main" ]
tags:
- "v*.*.*"
pull_request:
branches: [ "main" ]

Expand Down Expand Up @@ -47,11 +45,3 @@ jobs:
with:
name: aicirt-xz
path: target/dist/*.tar.xz
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: target/dist/README.md
files: |
target/dist/*.tar.gz
target/dist/*.tar.xz

0 comments on commit f09a86b

Please sign in to comment.