bf16d6039a
[`standard-version`](https://github.com/conventional-changelog/standard-version/) has been deprecated since May 2022, so it is necessary to stop using it for this project. [**`semantic-release`**](https://github.com/semantic-release/semantic-release) is available as a more capable alternative to help automate the release process: 1. Updating Node/Gem version numbers 2. Generating changelogs 3. Automating GitHub Releases 4. Building Chirpy-gem and pushing it to RubyGems.org 5. Create commits and tags on the `production` branch 6. Merge the `production` branch into the `master` branch > ⚠️ Note: Step _6_ may be canceled in CD environments due to merge conflicts, so we need to do this step manually in such cases. Whenever a commit is pushed to the release branch (`production`), all of the above release processes will be triggered.
17 lines
443 B
YAML
17 lines
443 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- docs
|
|
workflow_call:
|
|
|
|
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 }}"}}'
|