Add manual workflow dispatch
@@ -5,6 +5,7 @@ on:
pull_request:
branches: [master]
types: [closed]
+ workflow_dispatch:
name: Release on crates.io
@@ -12,7 +13,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
- if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
+ if: github.event.type != "PullRequestEvent" || (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release'))
steps:
- name: Checkout sources
