-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (47 loc) · 1.23 KB
/
release.yaml
File metadata and controls
51 lines (47 loc) · 1.23 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
---
name: Release
on: # yamllint disable-line rule:truthy
push:
branches:
- main
workflow_dispatch:
workflow_call:
jobs:
validate:
name: Validations
uses: ./.github/workflows/validations.yaml
release:
needs: [validate]
name: Create a release
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
-
uses: actions/checkout@v4
id: git-checkout
with:
fetch-tags: true
-
uses: googleapis/release-please-action@v4
id: release
with:
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
-
id: debug
env:
RELEASE_CREATED: ${{ steps.release.outputs.release_created }}
TRACE: ${{ secrets.ACTIONS_STEP_DEBUG || 'false' }}
run: |
if [ "$TRACE" != 'false' ]
then
printf 'Release created: %s\n' "$RELEASE_CREATED"
fi
publish:
if: needs.release.outputs.release_created
needs: release
name: Build and publish artifacts
uses: ./.github/workflows/publish.yaml
secrets: inherit