From f09a86b3dc3e74f1fa52171924210445646e6d1b Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 2 Feb 2024 01:01:27 +0000 Subject: [PATCH] add separate workflow for release --- .github/workflows/aicirt-release.yml | 33 ++++++++++++++++++++++++++++ .github/workflows/aicirt.yml | 10 --------- 2 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/aicirt-release.yml diff --git a/.github/workflows/aicirt-release.yml b/.github/workflows/aicirt-release.yml new file mode 100644 index 00000000..cb7184f0 --- /dev/null +++ b/.github/workflows/aicirt-release.yml @@ -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 diff --git a/.github/workflows/aicirt.yml b/.github/workflows/aicirt.yml index aa2122ee..3429c66f 100644 --- a/.github/workflows/aicirt.yml +++ b/.github/workflows/aicirt.yml @@ -3,8 +3,6 @@ name: AICIrt on: push: branches: [ "main" ] - tags: - - "v*.*.*" pull_request: branches: [ "main" ] @@ -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