-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 953 Bytes
/
release.yaml
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
name: Release babyrite
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get token
id: babyrite-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Run release-please-action
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ steps.babyrite-token.outputs.token }}
- name: Publish the Docker package
if: steps.release.outputs.release_created
uses: ./.github/actions/publish
with:
major: ${{ steps.release.outputs.major }}
minor: ${{ steps.release.outputs.minor }}
patch: ${{ steps.release.outputs.patch }}
sha: ${{ steps.release.outputs.sha }}