From be57b4649cf1b3f6d5b01b0cca7d2408b8a8e14e Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Fri, 6 Sep 2024 22:17:09 +0200 Subject: [PATCH] chore: allow running with workflow dispatch --- .github/workflows/release.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9a1244..68eccbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: tags: - "v*" + workflow_dispatch: permissions: contents: write @@ -11,6 +12,7 @@ permissions: jobs: publish: runs-on: ubuntu-latest + if: github.event_name == 'push' steps: - uses: actions/checkout@v3 with: @@ -38,7 +40,7 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} build-upload-binaries: - needs: publish + # needs: publish strategy: fail-fast: false matrix: @@ -60,13 +62,13 @@ jobs: - run: cargo build --release --features vendored-openssl --bin cargo-codspeed --target ${{ matrix.target }} - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.publish.outputs.upload_url }} - asset_path: ./target/${{ matrix.target }}/release/cargo-codspeed - asset_name: cargo-codspeed-${{ matrix.target }} - asset_content_type: application/octet-stream + # - name: Upload Release Asset + # id: upload-release-asset + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # upload_url: ${{ needs.publish.outputs.upload_url }} + # asset_path: ./target/${{ matrix.target }}/release/cargo-codspeed + # asset_name: cargo-codspeed-${{ matrix.target }} + # asset_content_type: application/octet-stream