Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ apax create @simatic-ax/app --registry https://npm.pkg.github.com
| |
| +- .github
| | |
| | |- application-example-release-workflow.yml
| | |- package-development-workflow.yml
| | |- package-release-workflow.yml
| |
| +- docs
| | | # the place for additional user-documentation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow is triggered when a release is published via the UI
name: Release workflow
name: Application example release workflow

# Start the workflow as soon as a release has been published via the UI
on:
Expand All @@ -11,6 +11,9 @@ permissions:
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
Expand All @@ -25,7 +28,7 @@ jobs:
needs: call-development
runs-on: ubuntu-24.04
container:
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:3.4.2
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:3.5.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -37,32 +40,49 @@ jobs:
ref: ${{ github.event.release.target_commitish }}
fetch-depth: 0

- name: Download build artifacts
uses: actions/download-artifact@v4
# Set the version of the template package itself to the version of the release
- name: Version package
uses: simatic-ax/actions/apax-version@v3
with:
version: ${{ github.event.release.tag_name }}

# Templatify the repository content
- name: Templatify repository
uses: simatic-ax/actions/apax-templatify@v3
with:
name: build-artifacts
path: bin
version: ${{ github.event.release.tag_name }}

# Set the version of the templates content to the version of the release
# This is the version the user will see in the apax.yml
# once he opens a project create based on this template
- name: Version package
uses: simatic-ax/actions/apax-version@v3
with:
version: ${{ github.event.release.tag_name }}
path: ${{ env.TEMPLATE_PATH }}/template

- name: Package source code
# Create a package out of the template
# This is the package the user will refer to
# during an apax create based on this template
- name: Pack the template
uses: simatic-ax/actions/apax-pack@v3
with:
key: ${{ secrets.APAX_SIGNKEY }}
path: ${{ env.TEMPLATE_PATH }}

# Login to the GitHub registry
- 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 }}

# Publish the package to the GitHub registry
- name: Publish apax package
uses: simatic-ax/actions/apax-publish@v3
with:
registries: |
https://npm.pkg.github.com
tag: latest
tag: latest
path: ${{ env.TEMPLATE_PATH }}
11 changes: 1 addition & 10 deletions template/.github/workflows/package-development-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,4 @@ jobs:
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: 'yes'
base-branch: 'main'

- name: Upload build artifacts
if: ${{ github.event_name == 'workflow_call' || github.event_name == 'release'}}
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: bin
retention-days: 90
if-no-files-found: error
base-branch: 'main'
44 changes: 0 additions & 44 deletions template/.github/workflows/templatify-workflow.yml

This file was deleted.

Loading