|
5 | 5 | branches: |
6 | 6 | - main |
7 | 7 |
|
8 | | -permissions: write-all |
9 | | - |
10 | 8 | jobs: |
11 | | - rockspec-info: |
12 | | - uses: ./.github/workflows/rockspec-info.yml |
13 | | - |
14 | 9 | release-please: |
15 | 10 | runs-on: ubuntu-latest |
16 | | - |
17 | | - |
18 | | - outputs: |
19 | | - release_created: ${{ steps.release.outputs.release_created }} |
20 | | - prs_created: ${{ steps.release.outputs.prs_created }} |
21 | | - pr_branch_name: ${{ steps.release.outputs.prs_created == 'true' && fromJSON(steps.release.outputs.pr).headBranchName || '' }} |
22 | 11 | steps: |
23 | | - - uses: cwaldren-ld/release-please-action@abc94317b0567221f719cd278b2a2a597a2069fe |
| 12 | + - uses: google-github-actions/release-please-action@v3 |
24 | 13 | id: release |
25 | 14 | with: |
| 15 | + command: manifest |
26 | 16 | token: ${{ secrets.GITHUB_TOKEN }} |
27 | | - target-branch: ${{ github.ref_name }} |
28 | | - |
29 | | - update-release-pr: |
30 | | - needs: release-please |
31 | | - if: ${{ needs.release-please.outputs.prs_created == 'true' }} |
32 | | - runs-on: ubuntu-latest |
33 | | - steps: |
34 | | - - uses: actions/checkout@v4 |
35 | | - - name: Update launchdarkly-server-sdk rockspec |
36 | | - uses: ./.github/actions/update-versions |
37 | | - with: |
38 | | - package: launchdarkly-server-sdk |
39 | | - branch: ${{ needs.release-please.outputs.pr_branch_name }} |
40 | | - |
41 | | - - name: Update launchdarkly-server-sdk-redis rockspec |
42 | | - uses: ./.github/actions/update-versions |
43 | | - with: |
44 | | - package: launchdarkly-server-sdk-redis |
45 | | - branch: ${{ needs.release-please.outputs.pr_branch_name }} |
46 | | - |
47 | | - publish-docs: |
48 | | - permissions: |
49 | | - contents: write # Needed to publish to Github Pages |
50 | | - needs: release-please |
51 | | - if: ${{ needs.release-please.outputs.release_created == 'true' }} |
52 | | - runs-on: ubuntu-latest |
53 | | - steps: |
54 | | - - uses: actions/checkout@v4 |
55 | | - - name: Build documentation |
56 | | - uses: ./.github/actions/build-docs |
57 | | - |
58 | | - - name: Publish docs |
59 | | - uses: ./.github/actions/publish-docs |
60 | | - with: |
61 | | - token: ${{ secrets.GITHUB_TOKEN }} |
62 | | - |
63 | | - publish-server: |
64 | | - permissions: # Needed for access to the LuaRocks token |
65 | | - id-token: write |
66 | | - contents: read |
67 | | - needs: [release-please, rockspec-info] |
68 | | - if: ${{ needs.release-please.outputs.release_created == 'true' }} |
69 | | - runs-on: ubuntu-latest |
70 | | - steps: |
71 | | - - uses: actions/checkout@v4 |
72 | | - - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.2 |
73 | | - name: 'Get LuaRocks token' |
74 | | - with: |
75 | | - aws_assume_role: ${{ vars.AWS_ROLE_ARN }} |
76 | | - ssm_parameter_pairs: '/production/common/releasing/luarocks/token = LUAROCKS_API_TOKEN' |
77 | | - - uses: ./.github/actions/publish |
78 | | - name: Publish server package |
79 | | - with: |
80 | | - dry_run: 'false' |
81 | | - rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).server }} |
82 | | - |
83 | | - publish-redis: |
84 | | - permissions: # Needed for access to the LuaRocks token |
85 | | - id-token: write |
86 | | - contents: read |
87 | | - needs: [ publish-server, rockspec-info ] |
88 | | - runs-on: ubuntu-latest |
89 | | - steps: |
90 | | - - uses: actions/checkout@v4 |
91 | | - - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.2 |
92 | | - name: 'Get LuaRocks token' |
93 | | - with: |
94 | | - aws_assume_role: ${{ vars.AWS_ROLE_ARN }} |
95 | | - ssm_parameter_pairs: '/production/common/releasing/luarocks/token = LUAROCKS_API_TOKEN' |
96 | | - - uses: ./.github/actions/publish |
97 | | - name: Publish redis package |
98 | | - with: |
99 | | - dry_run: 'false' |
100 | | - rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).redis }} |
| 17 | + default-branch: main |
0 commit comments