The release workflow (package-release-workflow.yml) is designed to automate the release process when a new release is published via the UI. This workflow ensures that the package is built, versioned, and published correctly.
- Execute Development Workflow: Calls the development workflow to build and test the source code.
- Checkout Code: Checks out the repository code based on the release reference.
- Download Build Artifacts: Downloads the build artifacts generated during the development workflow.
- Version Package: Versions the package based on the release tag name.
- Package Source Code: Packages the source code for release.
- Login to Required Registries: Logs into the necessary registries using provided tokens.
- Publish Apax Package: Publishes the package to the specified registries.
- Update Changelog: Updates the repositorys CHANGELOG.md based on the input of the release.
- Update version tags: Tags the current release with a specific version, e.g. v3.4.2 and advances the current major version, e.g. v3, tag to the release content.
The workflow is triggered when a release is published via the UI.
The workflow requires the following secrets:
APAX_TOKEN: Token to authenticate with the SIMATIC AX registry.APAX_SIGNKEY: Key to sign the package.GITHUB_TOKEN: A temporary token, issued for CI pipelines only. Permissions are being set in the workflow itself.
- Containerized Environment: The workflow runs in a containerized environment using the
ghcr.io/simatic-ax/ci-images/apax-ci-image:4.0.0image. - Custom Actions: The workflow uses custom actions (apax-version, apax-pack, apax-login, apax-publish) that are specific to the SIMATIC AX project.