diff --git a/.github/workflows/test-deploy-gh-pages.yml b/.github/workflows/continuous-integration.yml similarity index 93% rename from .github/workflows/test-deploy-gh-pages.yml rename to .github/workflows/continuous-integration.yml index 0ee201b..f612e3d 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: 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