Skip to content

Commit 363741d

Browse files
authored
Merge pull request #13 from simatic-ax/add-catalog-and-workflows
chore(deps): Adds the SIMATIC AX catalog 2504 to the apax.yml
2 parents ea71a8a + fd54a00 commit 363741d

File tree

5 files changed

+159
-17
lines changed

5 files changed

+159
-17
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# This workflow is triggered when a release is published via the UI
2+
name: Release workflow
3+
4+
# Start the workflow as soon as a release has been published via the UI
5+
on:
6+
release:
7+
types: [published]
8+
9+
permissions:
10+
contents: read # required for checkout
11+
packages: write # required for pulling the container
12+
actions: write # required for artifact uploading
13+
14+
env:
15+
TEMPLATE_PATH: working-directory
16+
17+
jobs:
18+
call-development:
19+
name: Build the package
20+
uses: ./.github/workflows/package-development-workflow.yml
21+
secrets:
22+
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
23+
with:
24+
ref: ${{ github.event.release.target_commitish }}
25+
26+
release:
27+
name: Release the package
28+
needs: call-development
29+
runs-on: ubuntu-24.04
30+
container:
31+
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:3.5.0
32+
credentials:
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
steps:
36+
- name: Checkout Code
37+
uses: actions/checkout@v4
38+
with:
39+
# checks out the branch that has been selected during the release process
40+
ref: ${{ github.event.release.target_commitish }}
41+
fetch-depth: 0
42+
43+
- name: Version package
44+
uses: simatic-ax/actions/apax-version@v3
45+
with:
46+
version: ${{ github.event.release.tag_name }}
47+
48+
- name: Templatify repository
49+
uses: simatic-ax/actions/apax-templatify@v3
50+
with:
51+
version: ${{ github.event.release.tag_name }}
52+
53+
- name: Version package
54+
uses: simatic-ax/actions/apax-version@v3
55+
with:
56+
version: ${{ github.event.release.tag_name }}
57+
path: ${{ env.TEMPLATE_PATH }}/template
58+
59+
- name: Pack the template
60+
uses: simatic-ax/actions/apax-pack@v3
61+
with:
62+
key: ${{ secrets.APAX_SIGNKEY }}
63+
path: ${{ env.TEMPLATE_PATH }}
64+
65+
- name: Login to required registries
66+
uses: simatic-ax/actions/apax-login@v3
67+
with:
68+
apax-token: ${{ secrets.APAX_TOKEN }}
69+
registries: |
70+
https://npm.pkg.github.com/,${{ secrets.GITHUB_TOKEN }}
71+
72+
- name: Publish apax package
73+
uses: simatic-ax/actions/apax-publish@v3
74+
with:
75+
registries: |
76+
https://npm.pkg.github.com
77+
tag: latest
78+
path: ${{ env.TEMPLATE_PATH }}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# This workflow is going to be used during the development phase of the project
2+
name: Application development workflow
3+
4+
on:
5+
push:
6+
branches:
7+
- 'main' # runs the workflow, once new changes have been integrated to main
8+
pull_request:
9+
workflow_call:
10+
secrets:
11+
APAX_TOKEN:
12+
required: true
13+
inputs:
14+
ref:
15+
required: true
16+
type: string
17+
18+
permissions:
19+
contents: read # required for checkout
20+
packages: read # required for pulling the container
21+
actions: write # required for artifact uploading
22+
23+
jobs:
24+
build-and-test:
25+
name: Build and Test
26+
runs-on: ubuntu-24.04
27+
container:
28+
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:3.5.0
29+
credentials:
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
steps:
33+
- name: Checkout Code
34+
uses: actions/checkout@v4
35+
with:
36+
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
37+
38+
- name: Login to required registries
39+
uses: simatic-ax/actions/apax-login@v3
40+
with:
41+
apax-token: ${{ secrets.APAX_TOKEN }}
42+
registries: |
43+
https://npm.pkg.github.com/,${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: Install dependencies
46+
uses: simatic-ax/actions/apax-install@v3
47+
with:
48+
immutable: true
49+
50+
- name: Build source code
51+
uses: simatic-ax/actions/apax-build@v3
52+
53+
- name: Test source code
54+
uses: simatic-ax/actions/apax-test@v3
55+
56+
- name: Check links
57+
uses: gaurav-nelson/github-action-markdown-link-check@v1
58+
with:
59+
check-modified-files-only: 'yes'
60+
base-branch: 'main'

.github/workflows/release-applicationexample.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

apax.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ version: 2.0.0
33
type: app
44
targets:
55
- "1500"
6+
catalogs:
7+
"@ax/simatic-ax": 2504.0.0
68
devDependencies:
7-
"@ax/sdk": 2411.0.0
9+
"@ax/sdk": 2504.0.0
810
variables:
911
APAX_BUILD_ARGS:
10-
- "--debug"
12+
- "--debug"

templatify-meta-information.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# this files section will be used for the github workflow
2+
# the apax.yml will be created dynamically in the workflow - also the files section
3+
# here you can define the content
4+
5+
files:
6+
- .vscode
7+
- docs
8+
- src
9+
- test
10+
- mon
11+
- .gitattributes
12+
- .gitignore
13+
- ax-sdb-example.cer
14+
- apax-lock.json
15+
- apax.yml
16+
- README.md
17+
- LICENSE.md

0 commit comments

Comments
 (0)