|
5 | 5 | workflow_dispatch: |
6 | 6 |
|
7 | 7 | permissions: |
8 | | - id-token: write # Required for OIDC |
9 | 8 | contents: write |
10 | 9 | pull-requests: write |
11 | 10 |
|
12 | 11 | name: release-please |
13 | 12 |
|
14 | 13 | jobs: |
15 | | - # release: |
16 | | - # runs-on: ubuntu-latest |
17 | | - # outputs: |
18 | | - # release-published: ${{ steps.release.outputs.release_created }} |
19 | | - # steps: |
20 | | - # - name: Release please |
21 | | - # uses: googleapis/release-please-action@v4 |
22 | | - # id: release |
23 | | - # with: |
24 | | - # # this assumes that you have created a personal access token |
25 | | - # # (PAT) and configured it as a GitHub action secret named |
26 | | - # # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). |
27 | | - # token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} |
28 | | - # # this is a built-in strategy in release-please, see "Action Inputs" |
29 | | - # # for more options |
30 | | - # release-type: node |
31 | | - # # create a release from a path other than the repository's root |
32 | | - # # path: pkg/cmd |
33 | | - # # The short ref name of the branch or tag that triggered |
34 | | - # # the workflow run. For example, `main` or `1.x` |
35 | | - # # target-branch: ${{ github.ref_name }} |
| 14 | + release: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + outputs: |
| 17 | + release-published: ${{ steps.release.outputs.release_created }} |
| 18 | + steps: |
| 19 | + - name: Release please |
| 20 | + uses: googleapis/release-please-action@v4 |
| 21 | + id: release |
| 22 | + with: |
| 23 | + # this assumes that you have created a personal access token |
| 24 | + # (PAT) and configured it as a GitHub action secret named |
| 25 | + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). |
| 26 | + token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} |
| 27 | + # this is a built-in strategy in release-please, see "Action Inputs" |
| 28 | + # for more options |
| 29 | + release-type: node |
| 30 | + # create a release from a path other than the repository's root |
| 31 | + # path: pkg/cmd |
| 32 | + # The short ref name of the branch or tag that triggered |
| 33 | + # the workflow run. For example, `main` or `1.x` |
| 34 | + # target-branch: ${{ github.ref_name }} |
36 | 35 |
|
37 | | - # # If true, do not attempt to create releases. |
38 | | - # # This is useful if splitting release tagging from PR creation. |
39 | | - # # skip-github-release: true |
| 36 | + # If true, do not attempt to create releases. |
| 37 | + # This is useful if splitting release tagging from PR creation. |
| 38 | + # skip-github-release: true |
40 | 39 |
|
41 | 40 | publish: |
42 | | - # if: needs.release.outputs.release-published |
43 | | - permissions: |
44 | | - id-token: write # Required for OIDC |
45 | | - contents: read |
46 | | - # needs: release |
| 41 | + if: needs.release.outputs.release-published |
| 42 | + needs: release |
47 | 43 | uses: ./.github/workflows/publish.yml |
0 commit comments