-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication-example-release-workflow.yml
More file actions
79 lines (68 loc) · 2.32 KB
/
application-example-release-workflow.yml
File metadata and controls
79 lines (68 loc) · 2.32 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This workflow is triggered when a release is published via the UI
name: Release workflow
# Start the workflow as soon as a release has been published via the UI
on:
release:
types: [published]
permissions:
contents: read # required for checkout
packages: write # required for pulling the container
actions: write # required for artifact uploading
env:
TEMPLATE_PATH: working-directory
jobs:
call-development:
name: Build the package
uses: ./.github/workflows/package-development-workflow.yml
secrets:
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
with:
ref: ${{ github.event.release.target_commitish }}
release:
name: Release the package
needs: call-development
runs-on: ubuntu-24.04
container:
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:4.2.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# checks out the branch that has been selected during the release process
ref: ${{ github.event.release.target_commitish }}
fetch-depth: 0
- name: Version package
uses: simatic-ax/actions/apax-version@v4
with:
version: ${{ github.event.release.tag_name }}
- name: Templatify repository
uses: simatic-ax/actions/apax-templatify@v4
with:
version: ${{ github.event.release.tag_name }}
- name: Version package
uses: simatic-ax/actions/apax-version@v4
with:
version: ${{ github.event.release.tag_name }}
path: ${{ env.TEMPLATE_PATH }}/template
- name: Pack the template
uses: simatic-ax/actions/apax-pack@v4
with:
key: ${{ secrets.APAX_SIGNKEY_V2 }}
key-version: "v2"
path: ${{ env.TEMPLATE_PATH }}
- name: Login to required registries
uses: simatic-ax/actions/apax-login@v4
with:
apax-token: ${{ secrets.APAX_TOKEN }}
registries: |
https://npm.pkg.github.com/,${{ secrets.GITHUB_TOKEN }}
- name: Publish apax package
uses: simatic-ax/actions/apax-publish@v4
with:
registries: |
https://npm.pkg.github.com
tag: latest
path: ${{ env.TEMPLATE_PATH }}