name: Release on: push: tags: - v[0-9]+.* jobs: create-release: name: Create GitHub release if: github.repository_owner == 'thombles' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: taiki-e/create-gh-release-action@v1 with: changelog: CHANGELOG.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} upload-assets: needs: create-release strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] include: - os: windows-latest features: paste - os: macos-latest features: paste runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: taiki-e/upload-rust-binary-action@v1 with: bin: hashgood features: ${{ matrix.features || '' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}