From cf91163fdda3d85cceee26128769baddc05186ec Mon Sep 17 00:00:00 2001 From: "Eric Richer eric.richer@vistoconsulting.com" Date: Fri, 8 Nov 2024 20:11:18 -0500 Subject: [PATCH 1/2] Updated GH CI workflow to run on push only Updated GH deploy-gh-pages.yml to run on milestone closed Added GH workflow release-on-milestone-closed.yml Signed-off-by: Eric Richer eric.richer@vistoconsulting.com --- ...-gh-pages.yml => continuous-integration.yml} | 4 ++-- .github/workflows/deploy-gh-pages.yml | 11 +++++++---- .../workflows/release-on-milestone-closed.yml | 17 +++++++++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) rename .github/workflows/{test-deploy-gh-pages.yml => continuous-integration.yml} (90%) create mode 100644 .github/workflows/release-on-milestone-closed.yml diff --git a/.github/workflows/test-deploy-gh-pages.yml b/.github/workflows/continuous-integration.yml similarity index 90% rename from .github/workflows/test-deploy-gh-pages.yml rename to .github/workflows/continuous-integration.yml index 0ee201b..fd1de29 100644 --- a/.github/workflows/test-deploy-gh-pages.yml +++ b/.github/workflows/continuous-integration.yml @@ -1,4 +1,4 @@ -name: Build GitHub Pages No Deploy +name: Test Build GitHub Pages defaults: run: @@ -6,7 +6,7 @@ defaults: working-directory: ./docs on: - pull_request: +# pull_request: push: jobs: diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index dc6ae39..594cd28 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -1,4 +1,4 @@ -name: Build and Deploy to GitHub Pages +name: Build and Deploy to GitHub Pages on Release defaults: run: @@ -6,10 +6,13 @@ defaults: working-directory: ./docs on: - push: - branches: - - 'master' +# push: +# branches: +# - 'main' workflow_dispatch: + milestone: + types: + - "closed" jobs: diff --git a/.github/workflows/release-on-milestone-closed.yml b/.github/workflows/release-on-milestone-closed.yml new file mode 100644 index 0000000..5e7f972 --- /dev/null +++ b/.github/workflows/release-on-milestone-closed.yml @@ -0,0 +1,17 @@ +# https://help.github.com/en/categories/automating-your-workflow-with-github-actions + +name: "Automatic Releases" + +on: + milestone: + types: + - "closed" + +jobs: + release: + uses: laminas/workflow-automatic-releases/.github/workflows/release-on-milestone-closed.yml@1.x + secrets: + GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} + GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} + ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }} + SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }} \ No newline at end of file From 52d348656a2a2453c84e060949d0a0bdf5e8e389 Mon Sep 17 00:00:00 2001 From: "Eric Richer eric.richer@vistoconsulting.com" Date: Fri, 8 Nov 2024 20:18:34 -0500 Subject: [PATCH 2/2] Fixed GH CI workflow to run on PRs Signed-off-by: Eric Richer eric.richer@vistoconsulting.com --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index fd1de29..f612e3d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -6,7 +6,7 @@ defaults: working-directory: ./docs on: -# pull_request: + pull_request: push: jobs: