|
| 1 | +# https://help.github.com/en/categories/automating-your-workflow-with-github-actions |
| 2 | + |
1 | 3 | name: "Automatic Releases"
|
2 | 4 |
|
3 | 5 | on:
|
|
7 | 9 |
|
8 | 10 | jobs:
|
9 | 11 | release:
|
10 |
| - uses: laminas/workflow-automatic-releases/.github/workflows/[email protected] |
11 |
| - secrets: |
12 |
| - GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} |
13 |
| - GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} |
14 |
| - ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }} |
15 |
| - SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }} |
| 12 | + name: "GIT tag, release & create merge-up PR" |
| 13 | + runs-on: ubuntu-latest |
| 14 | + |
| 15 | + steps: |
| 16 | + - name: "Checkout" |
| 17 | + uses: "actions/checkout@v4" |
| 18 | + |
| 19 | + - name: "Release" |
| 20 | + uses: "laminas/automatic-releases@v1" |
| 21 | + with: |
| 22 | + command-name: "laminas:automatic-releases:release" |
| 23 | + env: |
| 24 | + "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} |
| 25 | + "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} |
| 26 | + "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} |
| 27 | + "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} |
| 28 | + |
| 29 | + - name: "Create Merge-Up Pull Request" |
| 30 | + uses: "laminas/automatic-releases@v1" |
| 31 | + with: |
| 32 | + command-name: "laminas:automatic-releases:create-merge-up-pull-request" |
| 33 | + env: |
| 34 | + "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} |
| 35 | + "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} |
| 36 | + "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} |
| 37 | + "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} |
| 38 | + |
| 39 | + - name: "Create and/or Switch to new Release Branch" |
| 40 | + uses: "laminas/automatic-releases@v1" |
| 41 | + with: |
| 42 | + command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor" |
| 43 | + env: |
| 44 | + "GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }} |
| 45 | + "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} |
| 46 | + "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} |
| 47 | + "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} |
| 48 | + |
| 49 | + - name: "Bump Changelog Version On Originating Release Branch" |
| 50 | + uses: "laminas/automatic-releases@v1" |
| 51 | + with: |
| 52 | + command-name: "laminas:automatic-releases:bump-changelog" |
| 53 | + env: |
| 54 | + "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} |
| 55 | + "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} |
| 56 | + "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} |
| 57 | + "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} |
| 58 | + |
| 59 | + - name: "Create new milestones" |
| 60 | + uses: "laminas/automatic-releases@v1" |
| 61 | + with: |
| 62 | + command-name: "laminas:automatic-releases:create-milestones" |
| 63 | + env: |
| 64 | + "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} |
| 65 | + "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }} |
| 66 | + "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }} |
| 67 | + "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }} |
0 commit comments