Skip to content

Commit

Permalink
chore: allow running with workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Sep 6, 2024
1 parent 2cfe8e0 commit be57b46
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
tags:
- "v*"
workflow_dispatch:

permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -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:
Expand All @@ -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

0 comments on commit be57b46

Please sign in to comment.