Skip to content

chore: Incorporate new actions and workflows #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/lint-repo.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/package-development-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow is going to be used during the development phase of the project
# The workflow builds and tests the the sources on the following triggers:
# - once a change is pushed to the main branch or any of its sub-branches
name: Library development workflow

on:
push:
branches:
- 'main' # runs the workflow, once new changes have been integrated to main
- 'main/**' # runs the workflow, once new changes have been integrated to a sub-branch of main
pull_request:
branches:
- 'main' # run workflow in the scope of pull requests towards main
workflow_call:
secrets:
APAX_TOKEN:
required: true
inputs:
ref:
required: true
type: string

permissions:
contents: read # required for checkout
packages: read # required for pulling the container
actions: write # required for artifact uploading

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-24.04
container:
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:3.4.2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# either check out a provided reference, or use the reference that triggered this workflow, e.g. a push, PR or a release
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}

- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: 'yes'
base-branch: 'main'
63 changes: 63 additions & 0 deletions .github/workflows/package-release-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This workflow is triggered when a release is published via the UI
# The workflow is only executed if the release is a tag and the target_commitish is a release branch
name: Release workflow

# Start the workflow as soon as a release has been published via the UI
on:
release:
types: [published]

permissions:
contents: write # required for checkout
packages: write # required for pulling the container
actions: write # required for artifact downloading
pull-requests: write # Für PR-Erstellung und Management

jobs:
call-development:
name: Build the package
uses: ./.github/workflows/package-development-workflow.yml
secrets:
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
with:
# checks out the branch that has been selected during the release process
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:3.4.2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
fetch-depth: 0

- name: Version package
uses: simatic-ax/actions/apax-version@v3
with:
version: ${{ github.event.release.tag_name }}

- name: Package source code
uses: simatic-ax/actions/apax-pack@v3
with:
key: ${{ secrets.APAX_SIGNKEY }}

- name: Login to required registries
uses: simatic-ax/actions/apax-login@v3
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@v3
with:
registries: |
https://npm.pkg.github.com
17 changes: 0 additions & 17 deletions .github/workflows/release-library.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .markdownlint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# These owners will be the default owners for everything in the repo.
# Unless a later match takes precedence, the listed user will be
# requested for review when someone opens a pull request.
* @sjuergen @BeckerStS @kruegerfelix
* @sjuergen @ReinerSchinkoethe @theBadT @BeckerStS
21 changes: 0 additions & 21 deletions repolinter.json

This file was deleted.