Skip to content

Commit 59095ba

Browse files
authored
chore: Incorporate new actions and workflows
2 parents dd2fecf + 817d6f2 commit 59095ba

File tree

7 files changed

+110
-57
lines changed

7 files changed

+110
-57
lines changed

.github/workflows/lint-repo.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
pull_request:
11+
12+
workflow_call:
13+
secrets:
14+
APAX_TOKEN:
15+
required: true
16+
inputs:
17+
ref:
18+
required: true
19+
type: string
20+
21+
permissions:
22+
contents: read # required for checkout
23+
packages: read # required for pulling the container
24+
actions: write # required for artifact uploading
25+
26+
jobs:
27+
build-and-test:
28+
name: Build and Test
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+
# either check out a provided reference, or use the reference that triggered this workflow, e.g. a push, PR or a release
40+
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
41+
42+
- name: Check links
43+
uses: gaurav-nelson/github-action-markdown-link-check@v1
44+
with:
45+
check-modified-files-only: 'yes'
46+
base-branch: 'main'
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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: write # required for checkout
12+
packages: write # required for pulling the container
13+
actions: write # required for artifact downloading
14+
pull-requests: write # Für PR-Erstellung und Management
15+
16+
jobs:
17+
call-development:
18+
name: Build the package
19+
uses: ./.github/workflows/package-development-workflow.yml
20+
secrets:
21+
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
22+
with:
23+
# checks out the branch that has been selected during the release process
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+
ref: ${{ github.event.release.target_commitish }}
40+
fetch-depth: 0
41+
42+
- name: Version package
43+
uses: simatic-ax/actions/apax-version@v3
44+
with:
45+
version: ${{ github.event.release.tag_name }}
46+
47+
- name: Package source code
48+
uses: simatic-ax/actions/apax-pack@v3
49+
with:
50+
key: ${{ secrets.APAX_SIGNKEY }}
51+
52+
- name: Login to required registries
53+
uses: simatic-ax/actions/apax-login@v3
54+
with:
55+
apax-token: ${{ secrets.APAX_TOKEN }}
56+
registries: |
57+
https://npm.pkg.github.com/,${{ secrets.GITHUB_TOKEN }}
58+
59+
- name: Publish apax package
60+
uses: simatic-ax/actions/apax-publish@v3
61+
with:
62+
registries: |
63+
https://npm.pkg.github.com

.github/workflows/release-library.yml

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

.markdownlint.yml

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

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# These owners will be the default owners for everything in the repo.
22
# Unless a later match takes precedence, the listed user will be
33
# requested for review when someone opens a pull request.
4-
* @BeckerStS @sjuergen
4+
* @sjuergen @ReinerSchinkoethe @theBadT @BeckerStS

repolinter.json

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

0 commit comments

Comments
 (0)