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