From f88abfb65fbfde7a4101f499949ab76449fc6094 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 11:12:44 +1100 Subject: [PATCH 01/15] Test workflows --- .github/workflows/build_preview.yml | 4 ++-- .github/workflows/mlc_config.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 8fea8cf73..307ce9de0 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -14,7 +14,7 @@ concurrency: jobs: build-preview: - if: github.event.action != "closed" + if: ${{ github.event.action != 'closed' }} runs-on: ubuntu-latest steps: - name: Checkout @@ -83,7 +83,7 @@ jobs: pr-number: ${{ github.event.number }} close-preview: - if: github.event.action == 'closed' + if: ${{ github.event.action == 'closed' }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index 8c3ac09ce..704c73023 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -1,4 +1,3 @@ -:w { "ignorePatterns": [ { From d8a72bb02b9085579ae6f6a171d88768d7d0772f Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 11:19:05 +1100 Subject: [PATCH 02/15] Changed readme link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c5d231b3..eb3a7f3b4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![ACCESS-Hive Badge](docs/assets/badge.svg)](https://access-hive.org.au/) [![github-contributors](https://img.shields.io/github/contributors/ACCESS-Hive/access-hive.github.io?color=blue&style=plastic)][github-repo] [![forum-users](https://img.shields.io/discourse/users?color=blue&label=forum&server=https%3A%2F%2Fforum.access-hive.org.au&style=plastic)][forum] -[![Link Check](https://github.com/ACCESS-Hive/access-hive.github.io/actions/workflows/scheduled_link_check.yml/badge.svg)](https://github.com/ACCESS-Hive/access-hive.github.io/actions/workflows/scheduled_link_check.yml) +[![Link Check](https://github.com/ACCESS-Hive/access-hive.github.io/actions/workflows/check_links.yml/badge.svg)](https://github.com/ACCESS-Hive/access-hive.github.io/actions/workflows/check_links.yml) Documentation hub for the Earth System models, ACCESS, and their community. From cb1fb23d3c393c93eb7af265aa37184749715973 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 11:21:22 +1100 Subject: [PATCH 03/15] Changed readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb3a7f3b4..aca77c166 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ https://access-hive.org.au/ If you wish to add documentation to the ACCESS-Hive website see the [contribution guide](https://access-hive.org.au/about/contribute/) for instructions. -# How to Contribute [Draft] + # License The ACCESS-Hive site is covered by [the CC-BY 4.0 license][License]. From d399c7362530e9e88a4743467689fc0e377869be Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 11:36:48 +1100 Subject: [PATCH 04/15] test --- .github/workflows/build_preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 307ce9de0..49e63c113 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -57,10 +57,11 @@ jobs: uses: actions/github-script@v3.1.0 with: script: | + console.log('run-id=',${{ github.event.workflow_run.id }}); var artifacts = await github.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, - run_id: ${{github.event.workflow_run.id }}, + run_id: ${{ github.event.workflow_run.id }}, }); var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "pr_site" From e8c323c484aaf14829b6030fa257f0742b6beaee Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 13:23:00 +1100 Subject: [PATCH 05/15] test --- .github/workflows/build_preview.yml | 27 +----- .github/workflows/build_preview_orig.yml | 101 +++++++++++++++++++++++ 2 files changed, 103 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/build_preview_orig.yml diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 49e63c113..d447ad91a 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -57,31 +57,8 @@ jobs: uses: actions/github-script@v3.1.0 with: script: | - console.log('run-id=',${{ github.event.workflow_run.id }}); - var artifacts = await github.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{ github.event.workflow_run.id }}, - }); - var matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "pr_site" - })[0]; - var download = await github.actions.downloadArtifact({ - owner: context.repo.owner, - repo: context.repo.repo, - artifact_id: matchArtifact.id, - archive_format: 'zip', - }); - var fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/pr_site.zip', Buffer.from(download.data)); - - run: unzip pr_site.zip - - - name: Deploy preview - uses: access-nri/pr-preview-action@v2.1.1 - with: - source-dir: site - action: deploy - pr-number: ${{ github.event.number }} + console.log('run_id=',${{ github.event.workflow_run.id }}); + debug: true close-preview: if: ${{ github.event.action == 'closed' }} diff --git a/.github/workflows/build_preview_orig.yml b/.github/workflows/build_preview_orig.yml new file mode 100644 index 000000000..235635a41 --- /dev/null +++ b/.github/workflows/build_preview_orig.yml @@ -0,0 +1,101 @@ +name: Build PR preview + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +concurrency: + group: preview-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-preview: + if: ${{ github.event.action != 'closed' }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: 3.x + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Build + # builds to "site" directory by default + run: | + mkdocs build -f mkdocs.yml -d site + + - name: Save built site + run: | + mkdir -p ./pr_site + mv site ./pr_site/. + + - uses: actions/upload-artifact@v3 + with: + name: pr_site + path: pr_site/ + + deploy-preview: + needs: build-preview + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: 3.x + + - name: "Download built site" + uses: actions/github-script@v3.1.0 + with: + script: | + var artifacts = await github.actions.listWorkflowRunArtifacts({ + owner: context.repo.owner, + repo: context.repo.repo, + run_id: ${{ github.event.workflow_run.id }}, + }); + var matchArtifact = artifacts.data.artifacts.filter((artifact) => { + return artifact.name == "pr_site" + })[0]; + var download = await github.actions.downloadArtifact({ + owner: context.repo.owner, + repo: context.repo.repo, + artifact_id: matchArtifact.id, + archive_format: 'zip', + }); + var fs = require('fs'); + fs.writeFileSync('${{github.workspace}}/pr_site.zip', Buffer.from(download.data)); + - run: unzip pr_site.zip + + - name: Deploy preview + uses: access-nri/pr-preview-action@v2.1.1 + with: + source-dir: site + action: deploy + pr-number: ${{ github.event.number }} + + close-preview: + if: ${{ github.event.action == 'closed' }} + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + + - name: Clean preview + uses: access-nri/pr-preview-action@v2.1.1 + with: + action: remove + pr-number: ${{ github.event.number }} + \ No newline at end of file From 8a30c2112b4c0c6a3c692c9f6d58db7c99334413 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 13:44:52 +1100 Subject: [PATCH 06/15] test --- .github/workflows/build_preview.yml | 26 +++++- .github/workflows/build_preview_orig.yml | 101 ----------------------- 2 files changed, 24 insertions(+), 103 deletions(-) delete mode 100644 .github/workflows/build_preview_orig.yml diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index d447ad91a..9cfd4eafa 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -57,8 +57,30 @@ jobs: uses: actions/github-script@v3.1.0 with: script: | - console.log('run_id=',${{ github.event.workflow_run.id }}); - debug: true + var artifacts = await github.actions.listWorkflowRunArtifacts({ + owner: context.repo.owner, + repo: context.repo.repo, + run_id: ${{ github.run_id }}, + }); + var matchArtifact = artifacts.data.artifacts.filter((artifact) => { + return artifact.name == "pr_site" + })[0]; + var download = await github.actions.downloadArtifact({ + owner: context.repo.owner, + repo: context.repo.repo, + artifact_id: matchArtifact.id, + archive_format: 'zip', + }); + var fs = require('fs'); + fs.writeFileSync('${{github.workspace}}/pr_site.zip', Buffer.from(download.data)); + - run: unzip pr_site.zip + + - name: Deploy preview + uses: access-nri/pr-preview-action@v2.1.1 + with: + source-dir: site + action: deploy + pr-number: ${{ github.event.number }} close-preview: if: ${{ github.event.action == 'closed' }} diff --git a/.github/workflows/build_preview_orig.yml b/.github/workflows/build_preview_orig.yml deleted file mode 100644 index 235635a41..000000000 --- a/.github/workflows/build_preview_orig.yml +++ /dev/null @@ -1,101 +0,0 @@ -name: Build PR preview - -on: - pull_request: - types: - - opened - - reopened - - synchronize - - closed - -concurrency: - group: preview-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-preview: - if: ${{ github.event.action != 'closed' }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - - name: Install dependencies - run: pip install -r requirements.txt - - - name: Build - # builds to "site" directory by default - run: | - mkdocs build -f mkdocs.yml -d site - - - name: Save built site - run: | - mkdir -p ./pr_site - mv site ./pr_site/. - - - uses: actions/upload-artifact@v3 - with: - name: pr_site - path: pr_site/ - - deploy-preview: - needs: build-preview - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - - name: "Download built site" - uses: actions/github-script@v3.1.0 - with: - script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{ github.event.workflow_run.id }}, - }); - var matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "pr_site" - })[0]; - var download = await github.actions.downloadArtifact({ - owner: context.repo.owner, - repo: context.repo.repo, - artifact_id: matchArtifact.id, - archive_format: 'zip', - }); - var fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/pr_site.zip', Buffer.from(download.data)); - - run: unzip pr_site.zip - - - name: Deploy preview - uses: access-nri/pr-preview-action@v2.1.1 - with: - source-dir: site - action: deploy - pr-number: ${{ github.event.number }} - - close-preview: - if: ${{ github.event.action == 'closed' }} - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - - name: Clean preview - uses: access-nri/pr-preview-action@v2.1.1 - with: - action: remove - pr-number: ${{ github.event.number }} - \ No newline at end of file From 753b3265dce8ee396332cc6856786a378a0df9b4 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 14:03:34 +1100 Subject: [PATCH 07/15] test --- .github/workflows/build_preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 9cfd4eafa..6831f8930 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -62,6 +62,7 @@ jobs: repo: context.repo.repo, run_id: ${{ github.run_id }}, }); + console.log('artifacts=',artifacts); var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "pr_site" })[0]; From 966e89de3acab0d12ded8d237f435af6c1184273 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 14:31:18 +1100 Subject: [PATCH 08/15] test --- .github/workflows/build_preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 6831f8930..65ae9a94f 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -57,12 +57,14 @@ jobs: uses: actions/github-script@v3.1.0 with: script: | + console.log(${{ github.event }}); + console.log(${{ github.event.workflow_run }}); + console.log(${{ github.event.workflow_run.id }}); var artifacts = await github.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{ github.run_id }}, }); - console.log('artifacts=',artifacts); var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "pr_site" })[0]; From 6db8fdee403a7927b215b19df228a8a00ca2ab4d Mon Sep 17 00:00:00 2001 From: atteggiani Date: Wed, 1 Nov 2023 15:12:52 +1100 Subject: [PATCH 09/15] test --- .github/workflows/build_preview.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 65ae9a94f..7eaae4a19 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -8,6 +8,9 @@ on: - synchronize - closed +permissions: + actions: read + concurrency: group: preview-${{ github.ref }} cancel-in-progress: true From 0fc3b3a6a5944e9e98bea662fea3f06b34749154 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Thu, 2 Nov 2023 16:55:55 +1100 Subject: [PATCH 10/15] test --- .github/workflows/build_preview.yml | 62 +++++++++++------------------ 1 file changed, 24 insertions(+), 38 deletions(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 7eaae4a19..32ff239b1 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -10,7 +10,7 @@ on: permissions: actions: read - + concurrency: group: preview-${{ github.ref }} cancel-in-progress: true @@ -23,27 +23,25 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - name: Python setup + uses: actions/setup-python@v4 with: python-version: 3.x - name: Install dependencies run: pip install -r requirements.txt - - name: Build + - name: Build preview website # builds to "site" directory by default run: | - mkdocs build -f mkdocs.yml -d site - - - name: Save built site - run: | - mkdir -p ./pr_site - mv site ./pr_site/. + mkdir -p pr_preview + mkdocs build -f mkdocs.yml -d pr_preview/preview - - uses: actions/upload-artifact@v3 + - name: Save built preview website + uses: actions/upload-artifact@v3 with: - name: pr_site - path: pr_site/ + name: pr_preview + path: pr_preview/preview deploy-preview: needs: build-preview @@ -52,39 +50,25 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - name: Python setup + uses: actions/setup-python@v4 with: python-version: 3.x - - name: "Download built site" - uses: actions/github-script@v3.1.0 + - name: Download built preview website + uses: actions/download-artifact@v3 with: - script: | - console.log(${{ github.event }}); - console.log(${{ github.event.workflow_run }}); - console.log(${{ github.event.workflow_run.id }}); - var artifacts = await github.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{ github.run_id }}, - }); - var matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "pr_site" - })[0]; - var download = await github.actions.downloadArtifact({ - owner: context.repo.owner, - repo: context.repo.repo, - artifact_id: matchArtifact.id, - archive_format: 'zip', - }); - var fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/pr_site.zip', Buffer.from(download.data)); - - run: unzip pr_site.zip + name: pr_preview + path: pr_preview + + - name: Display structure of downloaded files + run: ls -R + working-directory: pr_preview - name: Deploy preview uses: access-nri/pr-preview-action@v2.1.1 with: - source-dir: site + source-dir: pr_preview/preview action: deploy pr-number: ${{ github.event.number }} @@ -95,7 +79,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + + - name: Python setup + uses: actions/setup-python@v4 with: python-version: 3.x From 20e8541503a33ec731c1258928da160117621cc7 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Thu, 2 Nov 2023 17:05:58 +1100 Subject: [PATCH 11/15] test --- .github/workflows/build_preview.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 32ff239b1..103f27d63 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -60,15 +60,11 @@ jobs: with: name: pr_preview path: pr_preview - - - name: Display structure of downloaded files - run: ls -R - working-directory: pr_preview - name: Deploy preview uses: access-nri/pr-preview-action@v2.1.1 with: - source-dir: pr_preview/preview + source-dir: pr_preview action: deploy pr-number: ${{ github.event.number }} From 72b5279ce6714b56c5ea7988d61ceeff4bf6d9c1 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Thu, 2 Nov 2023 21:39:16 +1100 Subject: [PATCH 12/15] test --- .github/workflows/build_preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 103f27d63..e29b3b30c 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -8,8 +8,8 @@ on: - synchronize - closed -permissions: - actions: read +# permissions: +# actions: read concurrency: group: preview-${{ github.ref }} From b5ca26d1b20cf28f91d8e5006b0af02b472b0256 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Fri, 3 Nov 2023 11:20:30 +1100 Subject: [PATCH 13/15] Fixed pr-preview workflow --- .github/workflows/build_preview.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index e29b3b30c..496d49e59 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -8,9 +8,6 @@ on: - synchronize - closed -# permissions: -# actions: read - concurrency: group: preview-${{ github.ref }} cancel-in-progress: true From d93ff9c81b89806e2989313ea6f524f0cefd2646 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Fri, 3 Nov 2023 11:21:30 +1100 Subject: [PATCH 14/15] test --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index eaee2e427..ae185989c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,7 +6,7 @@ hide:

-
Welcome to ACCESS-Hive!
+
Welcome to ACCESS-Hive test2!
The open portal for the ACCESS user community, hosted by ACCESS-NRI
From a880440f2dcb5e88724e9ebcd54f95d17b4f3946 Mon Sep 17 00:00:00 2001 From: atteggiani Date: Fri, 3 Nov 2023 12:16:47 +1100 Subject: [PATCH 15/15] Edited build preview to be one single job ('build-and-deploy-preview', not creating any artifact) --- .github/workflows/build_preview.yml | 35 ++++------------------------- .github/workflows/publish.yml | 24 +++++++------------- 2 files changed, 12 insertions(+), 47 deletions(-) diff --git a/.github/workflows/build_preview.yml b/.github/workflows/build_preview.yml index 496d49e59..4b17a95d1 100644 --- a/.github/workflows/build_preview.yml +++ b/.github/workflows/build_preview.yml @@ -1,4 +1,4 @@ -name: Build PR preview +name: PR preview on: pull_request: @@ -13,7 +13,7 @@ concurrency: cancel-in-progress: true jobs: - build-preview: + build-and-deploy-preview: if: ${{ github.event.action != 'closed' }} runs-on: ubuntu-latest steps: @@ -29,39 +29,12 @@ jobs: run: pip install -r requirements.txt - name: Build preview website - # builds to "site" directory by default - run: | - mkdir -p pr_preview - mkdocs build -f mkdocs.yml -d pr_preview/preview + run: mkdocs build -f mkdocs.yml -d pr_preview-${{ github.ref }} - - name: Save built preview website - uses: actions/upload-artifact@v3 - with: - name: pr_preview - path: pr_preview/preview - - deploy-preview: - needs: build-preview - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Python setup - uses: actions/setup-python@v4 - with: - python-version: 3.x - - - name: Download built preview website - uses: actions/download-artifact@v3 - with: - name: pr_preview - path: pr_preview - - name: Deploy preview uses: access-nri/pr-preview-action@v2.1.1 with: - source-dir: pr_preview + source-dir: pr_preview-${{ github.ref }} action: deploy pr-number: ${{ github.event.number }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a3eed71a0..cf69ca790 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,19 +6,7 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -permissions: - actions: write - checks: write - contents: write - deployments: write - issues: write - packages: write - pull-requests: write - pages: write - repository-projects: write - security-events: write - statuses: write - id-token: write +permissions: write-all # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. @@ -34,15 +22,16 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - name: Python setup + uses: actions/setup-python@v4 with: python-version: 3.x - name: Install dependencies run: pip install -r requirements.txt + - name: Build - run: | - mkdocs build -f mkdocs.yml -d site + run: mkdocs build -f mkdocs.yml -d site - name: Deploy to gh-pages uses: JamesIves/github-pages-deploy-action@v4 @@ -62,13 +51,16 @@ jobs: uses: actions/checkout@v3 with: ref: 'gh-pages' + - name: Setup Pages uses: actions/configure-pages@v3 + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: # Upload entire repository path: '.' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2