File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - " v*"
7+ workflow_dispatch :
78
89permissions :
910 contents : write
@@ -23,11 +24,13 @@ jobs:
2324 - name : Build
2425 run : cargo build --release
2526 - name : Publish package
27+ if : github.event_name != 'workflow_dispatch'
2628 run : cargo workspaces publish --from-git
2729 env :
2830 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
2931 - name : Create a draft release
3032 id : create_release
33+ if : github.event_name != 'workflow_dispatch'
3134 run : |
3235 NEW_VERSION=$(cargo workspaces ls --json | jq -r '.[] | select(.name == "codspeed") | .version')
3336 gh release create v$NEW_VERSION --title "v$NEW_VERSION" --generate-notes -d
5861 - run : ${{ matrix.cross && 'cross' || 'cargo' }} build --locked --release --bin cargo-codspeed --target ${{ matrix.target }}
5962
6063 - name : Upload Release Asset
64+ if : github.event_name != 'workflow_dispatch'
6165 id : upload-release-asset
6266 uses : actions/upload-release-asset@v1
6367 env :
You can’t perform that action at this time.
0 commit comments