Skip to content

Commit

Permalink
ci: distribute workflows for libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 25, 2023
1 parent 9a37d3e commit 310717c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/libraries/build-library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: push

jobs:
build-apax-lib:
uses: simatic-ax/actions/.github/workflows/apax-build.yml@stable
secrets:
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
SIMATIC_AX_TOKEN: ${{ secrets.DEPLOY_KEY }}
with:
ACTIONS_REF: stable
LOGIN_SIMATIC_AX: true

test-apax-lib:
needs: build-apax-lib
uses: simatic-ax/actions/.github/workflows/apax-build-test.yml@stable
secrets:
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
SIMATIC_AX_TOKEN: ${{ secrets.DEPLOY_KEY }}
with:
LOGIN_SIMATIC_AX: true
4 changes: 4 additions & 0 deletions .github/workflows/libraries/lint-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
on: push
jobs:
lint-repo-and-markdown:
uses: simatic-ax/actions/.github/workflows/check-repository.yml@stable
16 changes: 16 additions & 0 deletions .github/workflows/libraries/release-library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
# Pattern matched against refs/tags
tags:
- '*'

jobs:
release-apax-lib:
uses: simatic-ax/actions/.github/workflows/apax-publish.yml@stable
secrets:
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
APAX_SIGNKEY: ${{ secrets.APAX_SIGNKEY }}

with:
VERSION: ${{ github.ref_name }}

0 comments on commit 310717c

Please sign in to comment.