Automatic Releases #22
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
# Origin: | |
# https://github.com/laminas/automatic-releases/blob/f49a97ead921687b8b1c7d3fe59e3d530e440e1e/examples/.github/workflows/release-on-milestone-closed-triggering-release-event.yml | |
name: "Automatic Releases" | |
on: | |
milestone: | |
types: | |
- "closed" | |
jobs: | |
release: | |
name: "GIT tag, release & create merge-up PR" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4 | |
- name: "Release" | |
uses: "laminas/automatic-releases@v1" | |
with: | |
command-name: "laminas:automatic-releases:release" | |
env: | |
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }} | |
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} | |
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} | |
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} | |
- name: "Create Merge-Up Pull Request" | |
uses: "laminas/automatic-releases@v1" | |
with: | |
command-name: "laminas:automatic-releases:create-merge-up-pull-request" | |
env: | |
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} | |
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} | |
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} | |
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} | |
- name: "Create and/or Switch to new Release Branch" | |
uses: "laminas/automatic-releases@v1" | |
with: | |
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor" | |
env: | |
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }} | |
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} | |
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} | |
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} | |
- name: "Bump Changelog Version On Originating Release Branch" | |
uses: "laminas/automatic-releases@v1" | |
with: | |
command-name: "laminas:automatic-releases:bump-changelog" | |
env: | |
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} | |
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} | |
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} | |
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} | |
- name: "Create new milestones" | |
uses: "laminas/automatic-releases@v1" | |
with: | |
command-name: "laminas:automatic-releases:create-milestones" | |
env: | |
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} | |
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} | |
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} | |
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} |