diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 481b694..95a9852 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,22 +4,26 @@ on: push: branch: - main + tags: + - "*.*.*" jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: test run: cargo test release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - if: startsWith(github.ref, 'refs/tags/') + - name: checkout + uses: actions/checkout@v4 - name: build run: cargo build --release - - uses: softprops/action-gh-release@v1 + - name: release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: files: target/release/zr