Merge pull request #41 from Zuoqiu-Yingyi/dev #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 发行源码 | Release the source code | |
name: release-please | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
# Create release | |
# REF https://github.com/marketplace/actions/release-please-action | |
- name: Create release | |
uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
# A GitHub secret token, the action defaults to using the special secrets.GITHUB_TOKEN | |
# REF https://github.com/marketplace/actions/release-please-action#github-credentials | |
token: ${{ secrets.PAT_ACTIONS }} | |
# branch to open pull release PR against (detected by default) | |
target-branch: main | |
# Path to the release-please config in the repository. Defaults to release-please-config.json | |
# config-file: release-please-config.json | |
# Path to the release-please versions manifest. Defaults to .release-please-manifest.json | |
# manifest-file: .release-please-manifest.json | |
# If true, do not attempt to create releases. This is useful if splitting release tagging from PR creation. | |
skip-github-release: false | |
# If true, do not attempt to create release pull requests. This is useful if splitting release tagging from PR creation. | |
skip-github-pull-request: false |