Repository navigation
62 lines (58 loc) · 2.7 KB
/
Copy pathrelease-please.yml
File metadata and controls
62 lines (58 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release Please
on:
push:
branches: [main]
workflow_dispatch: # Run once after re-enabling the previously disabled workflow.
permissions:
contents: read
actions: write # Queue the main-branch publication workflow for a created release.
concurrency:
group: release-please-main
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Mint release PR App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.IPR_APP_ID }}
private-key: ${{ secrets.IPR_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: adcp-client-python
permission-contents: write
permission-pull-requests: write
- name: Open or update the release PR, or create its release after merge
id: release
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5
with:
token: ${{ steps.app-token.outputs.token }}
target-branch: main
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Normalize the release PR's PEP 440 version
if: steps.release.outputs.prs_created == 'true'
run: python3 -m scripts.normalize_pyproject_prerelease --release-prs
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
PROPOSAL_PRS: ${{ steps.release.outputs.prs }}
- name: Queue publication for the created adcp release
if: steps.release.outputs.release_created == 'true'
env:
GH_TOKEN: ${{ github.token }}
RELEASE_SHA: ${{ steps.release.outputs.sha }}
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
run: gh workflow run release-publish.yml --ref main -f package=adcp -f release_sha="$RELEASE_SHA" -f tag_name="$RELEASE_TAG"
- name: Queue publication for the created adcp-reporting-storage release
# Manifest mode prefixes every non-root package's outputs with its path.
if: steps.release.outputs['packages/adcp-reporting-storage--release_created'] == 'true'
env:
GH_TOKEN: ${{ github.token }}
RELEASE_SHA: ${{ steps.release.outputs['packages/adcp-reporting-storage--sha'] }}
RELEASE_TAG: ${{ steps.release.outputs['packages/adcp-reporting-storage--tag_name'] }}
run: gh workflow run release-publish.yml --ref main -f package=adcp-reporting-storage -f release_sha="$RELEASE_SHA" -f tag_name="$RELEASE_TAG"