message: Try new release workflow
diff: @@ -3,8 +3,20 @@ name: Release
  on:
  push:
  tags:
  - - '*.*.*'
  + - '[0-9]+.*'
  jobs:
  + create-release:
  + name: "Create GitHub release"
  + # only publish from the origin repository
  + if: github.repository_owner == 'xd009642'
  + runs-on: ubuntu-latest
  + steps:
  + - uses: actions/checkout@v3
  + - uses: taiki-e/create-gh-release-action@v1.3.0
  + with:
  + changelog: CHANGELOG.md
  + env:
  + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  crates:
  runs-on: ubuntu-latest
  steps:
  @@ -15,29 +27,30 @@ jobs:
  cargo publish --token ${{ secrets.CARGO_TOKEN }}
  binaries:
  - name: Build cargo-tarpaulin binaries for ${{ matrix.target }}
  + name: "Upload release binaries"
  + needs:
  + - create-release
  strategy:
  matrix:
  - target:
  - - x86_64-unknown-linux-gnu
  - - x86_64-unknown-linux-musl
  - runs-on: ubuntu-latest
  + include:
  + - target: x86_64-unknown-linux-gnu
  + os: ubuntu-latest
  + - target: x86_64-apple-darwin
  + os: macos-latest
  + - target: x86_64-pc-windows-msvc
  + os: windows-latest
  + - target: aarch64-unknown-linux-gnu
  + os: ubuntu-latest
  + - target: aarch64-apple-darwin
  + os: macos-latest
  + - target: aarch64-pc-windows-msvc
  + os: windows-latest
  + runs-on: ${{ matrix.os }}
  steps:
  - - uses: actions/checkout@v2
  - - uses: actions-rs/toolchain@v1
  + - uses: actions/checkout@v3
  + - uses: taiki-e/upload-rust-binary-action@v1
  with:
  + bin: rust-sandbox
  target: ${{ matrix.target }}
  - toolchain: stable
  - override: true
  - - name: build
  - run: cargo build --release
  - - name: archive
  - run: |
  - GIT_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
  - tar -C target/${{ matrix.target }}/release -czf $(pwd)/cargo-tarpaulin-${GIT_TAG}-${{ matrix.target }}.tar.gz cargo-tarpaulin
  - - name: publish release
  - uses: softprops/action-gh-release@v1
  - with:
  - files: cargo-tarpaulin-*.tar.gz
  env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  