Skip to content

Commit

Permalink
Merge pull request #46 from simatic-ax/auto_deploy_of_lib_workflows
Browse files Browse the repository at this point in the history
Auto deploy of lib workflows
  • Loading branch information
sjuergen authored Oct 26, 2023
2 parents b7f5e06 + b831aa2 commit 6006640
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 26 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/distribute_base_files.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Workflow to distribute default files
name: Distribute common org files

on:
workflow_dispatch: {} #to enable manual triggering of the action
jobs:

###################################################
# Library related jobs
###################################################

# This job deploys the files:
# - workflows/libraries/release-library.yml,
# - workflows/libraries/lint-repo.yml,
Expand Down Expand Up @@ -36,7 +40,7 @@ jobs:
deploy_common_files:

runs-on: ubuntu-latest

needs: deploy_library_workflows
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -50,7 +54,19 @@ 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"

###################################################
# application examples related jobs
###################################################

###################################################
# Template related jobs
###################################################

###################################################
# Organization related jobs
###################################################

# This job deploys the file:
# LICENSE.md to ALL repositories
Expand Down
7 changes: 7 additions & 0 deletions files/templates/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.apax
.env
bin
obj
TestResult
*.tgz
assets
4 changes: 4 additions & 0 deletions files/templates/workflows/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 files/templates/workflows/release-template.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 6006640

Please sign in to comment.