From 3b444407f41331020853fb4aa8b6445db947ff7f Mon Sep 17 00:00:00 2001 From: simatic-ax-bot Date: Wed, 25 Oct 2023 20:11:09 +0000 Subject: [PATCH] ci: distribute workflows for libraries --- .github/workflows/libraries/build-library.yml | 20 +++++++++++++++++++ .github/workflows/libraries/lint-repo.yml | 4 ++++ .../workflows/libraries/release-library.yml | 16 +++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .github/workflows/libraries/build-library.yml create mode 100644 .github/workflows/libraries/lint-repo.yml create mode 100644 .github/workflows/libraries/release-library.yml diff --git a/.github/workflows/libraries/build-library.yml b/.github/workflows/libraries/build-library.yml new file mode 100644 index 0000000..999175e --- /dev/null +++ b/.github/workflows/libraries/build-library.yml @@ -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 diff --git a/.github/workflows/libraries/lint-repo.yml b/.github/workflows/libraries/lint-repo.yml new file mode 100644 index 0000000..9863aa7 --- /dev/null +++ b/.github/workflows/libraries/lint-repo.yml @@ -0,0 +1,4 @@ +on: push +jobs: + lint-repo-and-markdown: + uses: simatic-ax/actions/.github/workflows/check-repository.yml@stable diff --git a/.github/workflows/libraries/release-library.yml b/.github/workflows/libraries/release-library.yml new file mode 100644 index 0000000..af6befe --- /dev/null +++ b/.github/workflows/libraries/release-library.yml @@ -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 }}