From 95010c6e3d444df2eb4f8d92cb136cb21d17e0cd Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 15 Nov 2023 12:01:12 +0100 Subject: [PATCH 1/5] misc: add install.[ps1,sh] to the docs site folder on build step --- .github/workflows/docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 993a636a0..c7570381f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -45,9 +45,11 @@ jobs: # This adds the following: # - A .nojekyll file to disable Jekyll GitHub Pages builds. + # - Adds installation scripts to the pages webserver. - name: Finalize documentation run: | touch site/.nojekyll + cp install/{install.sh,install.ps1} site # https://github.com/actions/upload-pages-artifact#file-permissions - run: chmod -c -R +rX site/ From 433131c07e3d85e616ee2868a4ab5752bc588d34 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 15 Nov 2023 12:07:51 +0100 Subject: [PATCH 2/5] fix: run workflow when its changed --- .github/workflows/docs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c7570381f..484755351 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,10 @@ on: - main paths: - 'docs/**' + - 'install/**' + - '.github/workflows/docs.yml' - 'mkdocs.yml' + - 'pixi.*' workflow_dispatch: From 977e8d47d984a9497e755cc5f73b67dffe917bdc Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 15 Nov 2023 12:18:28 +0100 Subject: [PATCH 3/5] ci: add a get dir to the site --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 484755351..1370d4a2d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -52,7 +52,7 @@ jobs: - name: Finalize documentation run: | touch site/.nojekyll - cp install/{install.sh,install.ps1} site + mkdir site/get && cp install/{install.sh,install.ps1} site # https://github.com/actions/upload-pages-artifact#file-permissions - run: chmod -c -R +rX site/ From a2b4f192176d09047ec71ed24033aefc87b5aca8 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 15 Nov 2023 12:24:06 +0100 Subject: [PATCH 4/5] ci: add install scripts to the get folder --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1370d4a2d..6ac39b018 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -52,7 +52,7 @@ jobs: - name: Finalize documentation run: | touch site/.nojekyll - mkdir site/get && cp install/{install.sh,install.ps1} site + mkdir site/get && cp install/{install.sh,install.ps1} site/get # https://github.com/actions/upload-pages-artifact#file-permissions - run: chmod -c -R +rX site/ From 188692e4b64596b152b2db90d5518ae261f4e3c2 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 15 Nov 2023 13:13:26 +0100 Subject: [PATCH 5/5] revert: put files directly in site --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6ac39b018..484755351 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -52,7 +52,7 @@ jobs: - name: Finalize documentation run: | touch site/.nojekyll - mkdir site/get && cp install/{install.sh,install.ps1} site/get + cp install/{install.sh,install.ps1} site # https://github.com/actions/upload-pages-artifact#file-permissions - run: chmod -c -R +rX site/