From 684649e0240239716e97c364de43764cf52126e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Seidel?= Date: Thu, 26 Oct 2023 01:42:53 +0200 Subject: [PATCH] add files for templates --- .../distribute_workflows_for_libraries.yml | 2 +- files/templates/.gitignore | 7 +++++++ files/templates/workflows/lint-repo.yml | 4 ++++ files/templates/workflows/release-template.yml | 16 ++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 files/templates/.gitignore create mode 100644 files/templates/workflows/lint-repo.yml create mode 100644 files/templates/workflows/release-template.yml diff --git a/.github/workflows/distribute_workflows_for_libraries.yml b/.github/workflows/distribute_workflows_for_libraries.yml index 8bbc4ff..96d4104 100644 --- a/.github/workflows/distribute_workflows_for_libraries.yml +++ b/.github/workflows/distribute_workflows_for_libraries.yml @@ -50,7 +50,7 @@ jobs: exclude_private: false exclude_forked: true committer_username: simatic-ax-bot - commit_message: "ci: distribute workflows for libraries" + commit_message: "ci: distribute common files" # This job deploys the file: # LICENSE.md to ALL repositories diff --git a/files/templates/.gitignore b/files/templates/.gitignore new file mode 100644 index 0000000..d7aee59 --- /dev/null +++ b/files/templates/.gitignore @@ -0,0 +1,7 @@ +.apax +.env +bin +obj +TestResult +*.tgz +assets diff --git a/files/templates/workflows/lint-repo.yml b/files/templates/workflows/lint-repo.yml new file mode 100644 index 0000000..9863aa7 --- /dev/null +++ b/files/templates/workflows/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/files/templates/workflows/release-template.yml b/files/templates/workflows/release-template.yml new file mode 100644 index 0000000..af6befe --- /dev/null +++ b/files/templates/workflows/release-template.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 }}