4ef3cd8efc
- Unchain commit-lint and CI - Even if a commit does not meet the CI path filter, it still needs to lint the commit message. - Unchain PR filter and CI - The CI workflow needs to be triggered when the commits in a pull request are modified. - Allow manual publishing - Sometimes `semantic-release` will error out due to commit messages referencing discussions, but this does not affect the final RubyGems/GitHub Release. In such cases, manual triggering of the publish process is needed to complete the remaining publishing steps.
23 lines
552 B
YAML
23 lines
552 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- docs
|
|
workflow_call:
|
|
secrets:
|
|
GH_PAT:
|
|
required: true
|
|
BUILDER:
|
|
required: true
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
launch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: |
|
|
curl -X POST -H "Accept: application/vnd.github+json" \
|
|
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
|
|
https://api.github.com/repos/${{ secrets.BUILDER }}/dispatches \
|
|
-d '{"event_type":"deploy", "client_payload":{"branch": "${{ github.ref_name }}"}}'
|