Skip to content

Commit 690c69d

Browse files
authored
Merge pull request #56 from simatic-ax/add-catalog
chore(deps):add catalog and workflows
2 parents 08d7787 + a26b3bf commit 690c69d

File tree

9 files changed

+112
-87
lines changed

9 files changed

+112
-87
lines changed

.github/workflows/lint-repo.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow is going to be used during the development phase of the project
2+
# The workflow builds and tests the the sources on the following triggers:
3+
# - once a change is pushed to the main branch or any of its sub-branches
4+
name: Library development workflow
5+
6+
on:
7+
push:
8+
branches:
9+
- 'main' # runs the workflow, once new changes have been integrated to main
10+
- 'main/**' # runs the workflow, once new changes have been integrated to a sub-branch of main
11+
pull_request:
12+
branches:
13+
- 'main' # run workflow in the scope of pull requests towards main
14+
workflow_call:
15+
secrets:
16+
APAX_TOKEN:
17+
required: true
18+
inputs:
19+
ref:
20+
required: true
21+
type: string
22+
23+
permissions:
24+
contents: read # required for checkout
25+
packages: read # required for pulling the SIMATIC AX container
26+
27+
jobs:
28+
build-and-test:
29+
name: Build and Test
30+
runs-on: ubuntu-24.04
31+
container:
32+
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:3.5.0
33+
credentials:
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
steps:
37+
- name: Checkout Code
38+
uses: actions/checkout@v4
39+
with:
40+
# either check out a provided reference, or use the reference that triggered the workflow call, e.g. a push, PR or a release
41+
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
42+
43+
- name: Check links
44+
uses: gaurav-nelson/github-action-markdown-link-check@v1
45+
with:
46+
check-modified-files-only: 'yes'
47+
base-branch: 'main'
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This workflow is triggered when a release is published via the UI
2+
# The workflow is only executed if the release is a tag and the target_commitish is a release branch
3+
name: Release workflow
4+
5+
# Start the workflow as soon as a release has been published via the UI
6+
on:
7+
release:
8+
types: [published]
9+
10+
permissions:
11+
contents: read # required for checkout
12+
packages: write # required for pulling the container
13+
14+
jobs:
15+
call-development:
16+
name: Build the package
17+
uses: ./.github/workflows/package-development-workflow.yml
18+
secrets:
19+
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
20+
with:
21+
ref: ${{ github.event.release.target_commitish }}
22+
23+
release:
24+
name: Release the package
25+
needs: call-development
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+
# checks out the branch that has been selected during the release process
37+
ref: ${{ github.event.release.target_commitish }}
38+
39+
- name: Version package
40+
uses: simatic-ax/actions/apax-version@v3
41+
with:
42+
version: ${{ github.event.release.tag_name }}
43+
44+
- name: Package template
45+
uses: simatic-ax/actions/apax-pack@v3
46+
with:
47+
key: ${{ secrets.APAX_SIGNKEY }}
48+
49+
- name: Login to required registries
50+
uses: simatic-ax/actions/apax-login@v3
51+
with:
52+
apax-token: ${{ secrets.APAX_TOKEN }}
53+
registries: |
54+
https://npm.pkg.github.com/,${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Publish apax package
57+
uses: simatic-ax/actions/apax-publish@v3
58+
with:
59+
registries: |
60+
https://npm.pkg.github.com
61+
tag: latest

.github/workflows/release-template.yml

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

.markdownlint.yml

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

changelog.md

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

repolinter.json

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

template/apax.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ targets:
2626
- 'llvm'
2727
# Dependencies
2828
devDependencies:
29-
"@ax/sdk": 2411.2.0
30-
"@ax/ax2tia": 10.0.8
29+
"@ax/sdk": 2504.0.0
30+
"@ax/ax2tia": 11.0.18
3131
"@simatic-ax/snippetscollection": 0.0.15
3232
# Apax scripts
3333
scripts:
@@ -49,3 +49,5 @@ files:
4949
- 'changelog.md'
5050
- 'doc'
5151
- 'bin/HandoverLibraryDocuments'
52+
catalogs:
53+
"@ax/simatic-ax": ^2504.0.0

template/changelog.md

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

0 commit comments

Comments
 (0)