Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.
Open
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
78 changes: 78 additions & 0 deletions .github/workflows/application-example-release-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# 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:3.5.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@v3
with:
version: ${{ github.event.release.tag_name }}

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

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

- name: Pack the template
uses: simatic-ax/actions/apax-pack@v3
with:
key: ${{ secrets.APAX_SIGNKEY }}
path: ${{ env.TEMPLATE_PATH }}

- 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
tag: latest
path: ${{ env.TEMPLATE_PATH }}
10 changes: 0 additions & 10 deletions .github/workflows/build-library.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/lint-repo.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/package-development-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This workflow is going to be used during the development phase of the project
name: Application development workflow

on:
push:
branches:
- 'main' # runs the workflow, once new changes have been integrated to main
pull_request:
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.5.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}

- 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: Install dependencies
uses: simatic-ax/actions/apax-install@v3
with:
immutable: true

- name: Build source code
uses: simatic-ax/actions/apax-build@v3

- name: Test source code
uses: simatic-ax/actions/apax-test@v3

- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: 'yes'
base-branch: 'main'
16 changes: 0 additions & 16 deletions .github/workflows/release-applicationexample.yml

This file was deleted.

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

This file was deleted.

Loading
Loading