diff --git a/.github/workflows/binder.yaml b/.github/workflows/binder.yaml index 92a6837..92ac38e 100644 --- a/.github/workflows/binder.yaml +++ b/.github/workflows/binder.yaml @@ -1,5 +1,4 @@ -# Reference https://mybinder.readthedocs.io/en/latest/howto/gh-actions-badges.html -name: Test this PR on Binder Badge +name: test-binder on: pull_request_target: diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index b5c4304..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: MyST GitHub Pages Deploy - -on: - workflow_run: - workflows: ["Execute Notebook"] - branches: [main] - types: [completed] - -jobs: - deploy: - uses: eds-book/notebooks-workflows/.github/workflows/deploy.yaml@main \ No newline at end of file diff --git a/.github/workflows/execute.yaml b/.github/workflows/execute.yaml deleted file mode 100644 index 4a6bdf3..0000000 --- a/.github/workflows/execute.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Execute Notebook - -on: - workflow_run: - workflows: ["Build and push container image"] - branches: [main, postprint] - types: [completed] - -jobs: - execute: - uses: eds-book/notebooks-workflows/.github/workflows/execute.yaml@main \ No newline at end of file diff --git a/.github/workflows/build.yaml b/.github/workflows/monthly-build.yaml similarity index 55% rename from .github/workflows/build.yaml rename to .github/workflows/monthly-build.yaml index 0d63ea2..16d3588 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/monthly-build.yaml @@ -1,14 +1,11 @@ -name: Build and push container image +name: monthly-build on: - push: - branches: [main, postprint] - paths-ignore: - - 'README.md' - - 'netlify.toml' + schedule: + - cron: "0 9 1 * *" # At 09:00 UTC on the 1st of each month jobs: - build-and-push: + build-and-execute: uses: eds-book/notebooks-workflows/.github/workflows/build.yaml@main secrets: QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..26a4c8d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,18 @@ +name: publish + +on: + push: + branches: [main, postprint] + paths-ignore: + - 'README.md' + +jobs: + build-and-execute: + uses: eds-book/notebooks-workflows/.github/workflows/build.yaml@main + secrets: + QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} + QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + + deploy: + needs: build-and-execute + uses: eds-book/notebooks-workflows/.github/workflows/deploy.yaml@main \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a4378b6..257f8b3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Test container image build +name: test-container on: pull_request: