-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.12 KB
/
main.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
38
39
40
41
42
43
44
45
name: Build mdbook
on:
push:
branches: [main]
jobs:
get-version:
uses: Acum-LTD/actions/.github/workflows/get-version.yaml@v1
permissions:
contents: read
with:
release_branches: main
update-version:
uses: Acum-LTD/actions/.github/workflows/update-version.yaml@v1
needs: get-version
permissions:
contents: write
with:
with-helm: true
tag: ${{ needs.get-version.outputs.version }}
version: ${{ needs.get-version.outputs.version }}
release_branches: main
docker:
uses: Acum-LTD/actions/.github/workflows/docker.yaml@v1
needs: [get-version, update-version]
permissions:
contents: read
packages: write
with:
sha: ${{ needs.get-version.outputs.sha }}
tag: ${{ needs.get-version.outputs.tag }}
release:
uses: Acum-LTD/actions/.github/workflows/release.yaml@v1
needs: [get-version, docker]
permissions:
contents: write
if: ${{ github.ref_name == 'main' }}
with:
tag: ${{ needs.get-version.outputs.tag }}
changelog: ${{ needs.get-version.outputs.changelog }}
release_branches: main