From a6e656a2b318523d0da6550a9089ee534e07367c Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Fri, 22 May 2026 23:50:05 +0200 Subject: [PATCH 01/13] refactor: rename args, add validation & Pages Rename input 'args' to 'options' and normalize input defaults/quoting; make config default empty and install_themes boolean. Add validation steps for Cecil version and config file, add PHP setup, and improve step names. Add Pages setup and artifact upload (upload-pages-artifact) and include baseurl during build. Update workflow examples and bump referenced actions (configure-pages, upload-pages-artifact, deploy-pages) and action usage to v4. --- README.md | 25 ++++++++++--------- action.yml | 73 ++++++++++++++++++++++++++++++++++++++---------------- 2 files changed, 65 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 98e5b34..8e4d506 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Cecil build Action -This GitHub Action builds a static site with [_Cecil_](https://cecil.app). +This GitHub Action build a [_Cecil_](https://cecil.app) site and upload a GitHub Pages artifact. [![test](https://github.com/Cecilapp/Action/actions/workflows/test.yml/badge.svg)](https://github.com/Cecilapp/Action/actions/workflows/test.yml) @@ -8,13 +8,13 @@ This GitHub Action builds a static site with [_Cecil_](https://cecil.app). ```yaml - name: Build site - uses: Cecilapp/Cecil-Action@v3 + uses: Cecilapp/Cecil-Action@v4 # optional with: - version: '8.0.0' # default: latest version - config: 'config.yml' # default: '' - args: '-v' # default: '-v' - install_themes: 'yes' # default: 'yes' + version: 8.0.0 # default: latest version + config: config.yml # default: empty + options: -v # default: "-v" (verbose) + install_themes: yes # default: "yes" ``` ### Workflow example @@ -27,7 +27,8 @@ The following workflow: 4. downloads Cecil 5. installs theme(s) 6. runs `php cecil.phar build -v` -7. deploys `_site` to GitHub Pages +7. upload artifact +8. deploys `_site` to GitHub Pages ```yaml name: Build and deploy to GitHub Pages @@ -60,15 +61,15 @@ jobs: - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v6 - name: Build site - uses: Cecilapp/Cecil-Action@v3 + uses: Cecilapp/Cecil-Action@v4 with: - args: '-v --baseurl="${{ steps.pages.outputs.base_url }}/"' + options: '-v --baseurl="${{ steps.pages.outputs.base_url }}/"' - name: Upload artifact - uses: actions/upload-pages-artifact@v4 + uses: actions/upload-pages-artifact@v5 deploy: needs: build @@ -79,7 +80,7 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 ``` ## License diff --git a/action.yml b/action.yml index aa06cdc..e88b385 100644 --- a/action.yml +++ b/action.yml @@ -1,45 +1,76 @@ -name: 'Cecil Action' -description: 'Build a Cecil static site.' -author: 'Arnaud Ligny' +name: "Cecil Action" +description: "Build a Cecil static site." +author: "Arnaud Ligny" inputs: version: - description: 'Cecil version (optional, last version by default).' + description: "Cecil version (optional, last version by default)." config: - description: 'Cecil configuration file (optional, `cecil.yml` by default).' - args: - description: 'Cecil arguments (optionnal, `-v` by default).' - default: '-v' + description: "Cecil configuration file (optional, empty by default)." + options: + description: "Cecil options (optional, `-v` by default)." + default: -v install_themes: - description: 'Use "no" to do not install theme(s) (optionnal, `yes` by default).' - default: 'yes' + description: "Use `no` to do not install theme(s) (optional, `yes` by default)." + default: yes branding: - icon: 'package' - color: 'white' + icon: package + color: white runs: - using: 'composite' + using: composite steps: - - run: | - # Downloading Cecil + - name: Validate Cecil version + shell: bash + run: | + version="${{ inputs.version }}" + if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+([\-+].*)?$ ]]; then + echo "Invalid Cecil version: '$version' (expected e.g. 8.76.3)" >&2 + exit 1 + fi + - name: Validate config file + shell: bash + run: | + if [[ -n "${{ inputs.config }}" && ! -f "${{ inputs.config }}" ]]; then + echo "Config file '${{ inputs.config }}' not found." >&2 + exit 1 + fi + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: pre-installed + extensions: mbstring, fileinfo, gd, imagick, intl, gettext, :redis + - name: Downloading Cecil + shell: bash + run: | if [[ -z "${{ inputs.version }}" ]]; then - echo "Downloading Cecil..." + echo "Downloading latest Cecil..." curl -sSOL https://cecil.app/cecil.phar else echo "Downloading Cecil ${{ inputs.version }}..." curl -sSOL https://cecil.app/download/${{ inputs.version }}/cecil.phar fi - # Installing theme(s) + - name: Installing theme(s) + shell: bash + run: | if [[ -f "composer.json" && ${{ inputs.install_themes }} = 'yes' ]]; then echo "Installing theme(s)..." composer install --prefer-dist --no-dev --no-progress --no-interaction --quiet fi - # Running build + - name: Setup Pages + id: pages + uses: actions/configure-pages@v6 + - name: Building site with Cecil + shell: bash + run: | if [[ -z "${{ inputs.config }}" ]]; then - php cecil.phar build ${{ inputs.args }} + php cecil.phar build ${{ inputs.options }} else - php cecil.phar build ${{ inputs.args }} --config=${{ inputs.config }} + php cecil.phar build ${{ inputs.options }} --config=${{ inputs.config }} --baseurl="${{ steps.pages.outputs.base_url }}/" fi # Summary if [ $? == 0 ]; then echo "Site built with Cecil ${{ inputs.version }}" >> $GITHUB_STEP_SUMMARY fi - shell: bash + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v5 + with: + path: ${{ inputs.working_directory }}/${{ inputs.output_dir }} From 1a8f5fb217769b296a4c8d5efcbed09ad8da4c79 Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Fri, 22 May 2026 23:58:34 +0200 Subject: [PATCH 02/13] Remove config input and unify options Remove the separate `config` input and simplify how options are passed to Cecil. action.yml: drop the `config` input and its validation, always run php cecil.phar with `inputs.options` plus the Pages base URL, and rename the Pages step to "Setup GitHub Pages". README and .github/workflows/test.yml: update examples to show passing `--config` via the `options` string, adjust workflow branches to include both main and master, and simplify the example workflow to match the action changes. --- .github/workflows/test.yml | 3 +-- README.md | 27 +++++---------------------- action.yml | 17 ++--------------- 3 files changed, 8 insertions(+), 39 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0fbe3e..b02936f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,5 @@ jobs: uses: ./ with: version: '8.93.1' - config: 'config.yml' - args: '-vv' + options: '-vv' install_themes: 'yes' diff --git a/README.md b/README.md index 8e4d506..62a29c4 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,7 @@ This GitHub Action build a [_Cecil_](https://cecil.app) site and upload a GitHub # optional with: version: 8.0.0 # default: latest version - config: config.yml # default: empty - options: -v # default: "-v" (verbose) + options: -v --config=config.yml # default: "-v" (verbose) install_themes: yes # default: "yes" ``` @@ -21,12 +20,12 @@ This GitHub Action build a [_Cecil_](https://cecil.app) site and upload a GitHub The following workflow: -1. runs on pushes to the `master` branch +1. runs on pushes to the `main` and `master` branches 2. checkout source 3. setup PHP 4. downloads Cecil 5. installs theme(s) -6. runs `php cecil.phar build -v` +6. runs Cecil to build the site 7. upload artifact 8. deploys `_site` to GitHub Pages @@ -34,8 +33,8 @@ The following workflow: name: Build and deploy to GitHub Pages on: push: - branches: [main] # or [master] - workflow_dispatch: # run manually + branches: [main, master] + workflow_dispatch: permissions: contents: read @@ -52,24 +51,8 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v6 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: pre-installed - extensions: mbstring, fileinfo, gd, imagick, intl, gettext, :redis - - - name: Setup Pages - id: pages - uses: actions/configure-pages@v6 - - name: Build site uses: Cecilapp/Cecil-Action@v4 - with: - options: '-v --baseurl="${{ steps.pages.outputs.base_url }}/"' - - - name: Upload artifact - uses: actions/upload-pages-artifact@v5 deploy: needs: build diff --git a/action.yml b/action.yml index e88b385..8a90ab2 100644 --- a/action.yml +++ b/action.yml @@ -4,8 +4,6 @@ author: "Arnaud Ligny" inputs: version: description: "Cecil version (optional, last version by default)." - config: - description: "Cecil configuration file (optional, empty by default)." options: description: "Cecil options (optional, `-v` by default)." default: -v @@ -26,13 +24,6 @@ runs: echo "Invalid Cecil version: '$version' (expected e.g. 8.76.3)" >&2 exit 1 fi - - name: Validate config file - shell: bash - run: | - if [[ -n "${{ inputs.config }}" && ! -f "${{ inputs.config }}" ]]; then - echo "Config file '${{ inputs.config }}' not found." >&2 - exit 1 - fi - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -55,17 +46,13 @@ runs: echo "Installing theme(s)..." composer install --prefer-dist --no-dev --no-progress --no-interaction --quiet fi - - name: Setup Pages + - name: Setup GitHub Pages id: pages uses: actions/configure-pages@v6 - name: Building site with Cecil shell: bash run: | - if [[ -z "${{ inputs.config }}" ]]; then - php cecil.phar build ${{ inputs.options }} - else - php cecil.phar build ${{ inputs.options }} --config=${{ inputs.config }} --baseurl="${{ steps.pages.outputs.base_url }}/" - fi + php cecil.phar build ${{ inputs.options }} --baseurl="${{ steps.pages.outputs.base_url }}/" # Summary if [ $? == 0 ]; then echo "Site built with Cecil ${{ inputs.version }}" >> $GITHUB_STEP_SUMMARY From 08b5f58de8b99413375d44718aa55e403af63aee Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 May 2026 00:12:06 +0200 Subject: [PATCH 03/13] Resolve output dir and refactor action.yml Update README formatting and refactor action.yml: normalize inputs, move PHP setup earlier (remove duplicate), and add a step to resolve the output directory from inputs.options (parses --output and -o variants, defaults to _site) exporting it via GITHUB_OUTPUT. Adjust upload-pages-artifact path to use the resolved output. Minor workflow/readme whitespace cleanups. --- README.md | 10 +++------- action.yml | 34 +++++++++++++++++++++++++--------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 62a29c4..187ac85 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ This GitHub Action build a [_Cecil_](https://cecil.app) site and upload a GitHub uses: Cecilapp/Cecil-Action@v4 # optional with: - version: 8.0.0 # default: latest version - options: -v --config=config.yml # default: "-v" (verbose) - install_themes: yes # default: "yes" + version: 8.0.0 # default: latest version + options: -v --config=config.yml # default: "-v" (verbose) + install_themes: yes # default: "yes" ``` ### Workflow example @@ -35,16 +35,13 @@ on: push: branches: [main, master] workflow_dispatch: - permissions: contents: read pages: write id-token: write - concurrency: group: "pages" cancel-in-progress: true - jobs: build: runs-on: ubuntu-latest @@ -53,7 +50,6 @@ jobs: uses: actions/checkout@v6 - name: Build site uses: Cecilapp/Cecil-Action@v4 - deploy: needs: build environment: diff --git a/action.yml b/action.yml index 8a90ab2..21347aa 100644 --- a/action.yml +++ b/action.yml @@ -1,12 +1,12 @@ name: "Cecil Action" description: "Build a Cecil static site." author: "Arnaud Ligny" -inputs: - version: - description: "Cecil version (optional, last version by default)." +inputs: options: description: "Cecil options (optional, `-v` by default)." default: -v + version: + description: "Cecil version (optional, last version by default)." install_themes: description: "Use `no` to do not install theme(s) (optional, `yes` by default)." default: yes @@ -16,6 +16,11 @@ branding: runs: using: composite steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: pre-installed + extensions: mbstring, fileinfo, gd, imagick, intl, gettext, :redis - name: Validate Cecil version shell: bash run: | @@ -24,11 +29,6 @@ runs: echo "Invalid Cecil version: '$version' (expected e.g. 8.76.3)" >&2 exit 1 fi - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: pre-installed - extensions: mbstring, fileinfo, gd, imagick, intl, gettext, :redis - name: Downloading Cecil shell: bash run: | @@ -57,7 +57,23 @@ runs: if [ $? == 0 ]; then echo "Site built with Cecil ${{ inputs.version }}" >> $GITHUB_STEP_SUMMARY fi + - name: Resolve output directory + id: output + shell: bash + run: | + options='${{ inputs.options }}' + output_dir="_site" + if [[ "$options" =~ (^|[[:space:]])--output=([^[:space:]]+) ]]; then + output_dir="${BASH_REMATCH[2]}" + elif [[ "$options" =~ (^|[[:space:]])--output[[:space:]]+([^[:space:]]+) ]]; then + output_dir="${BASH_REMATCH[2]}" + elif [[ "$options" =~ (^|[[:space:]])-o[[:space:]]+([^[:space:]]+) ]]; then + output_dir="${BASH_REMATCH[2]}" + elif [[ "$options" =~ (^|[[:space:]])-o([^[:space:]]+) ]]; then + output_dir="${BASH_REMATCH[2]}" + fi + echo "output_dir=$output_dir" >> "$GITHUB_OUTPUT" - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v5 with: - path: ${{ inputs.working_directory }}/${{ inputs.output_dir }} + path: ./${{ steps.output.outputs.output_dir }} From 789c879a756a0714b9d821fc2eff2f68eb88b8bd Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 May 2026 00:17:13 +0200 Subject: [PATCH 04/13] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 21347aa..f94dff0 100644 --- a/action.yml +++ b/action.yml @@ -25,7 +25,9 @@ runs: shell: bash run: | version="${{ inputs.version }}" - if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+([\-+].*)?$ ]]; then + if [[ -z "$version" ]]; then + echo "No Cecil version provided; using latest release." + elif [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+([\-+].*)?$ ]]; then echo "Invalid Cecil version: '$version' (expected e.g. 8.76.3)" >&2 exit 1 fi From 4c20be2a76d01a21f50aad28f2f34cd0b48e038c Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 May 2026 00:18:00 +0200 Subject: [PATCH 05/13] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 187ac85..cb3c24f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Cecil build Action -This GitHub Action build a [_Cecil_](https://cecil.app) site and upload a GitHub Pages artifact. +This GitHub Action builds a [_Cecil_](https://cecil.app) site and uploads a GitHub Pages artifact. [![test](https://github.com/Cecilapp/Action/actions/workflows/test.yml/badge.svg)](https://github.com/Cecilapp/Action/actions/workflows/test.yml) From 2b0614ed3c1fd4a0a84b934f933e96cc84c38e85 Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 May 2026 00:18:21 +0200 Subject: [PATCH 06/13] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb3c24f..d2f7349 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This GitHub Action builds a [_Cecil_](https://cecil.app) site and uploads a GitH with: version: 8.0.0 # default: latest version options: -v --config=config.yml # default: "-v" (verbose) - install_themes: yes # default: "yes" + install_themes: "yes" # default: "yes" ``` ### Workflow example From 71945073e9a52b65992516b7352152734a43a01c Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 May 2026 00:18:36 +0200 Subject: [PATCH 07/13] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f94dff0..e8f5c31 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: version: description: "Cecil version (optional, last version by default)." install_themes: - description: "Use `no` to do not install theme(s) (optional, `yes` by default)." + description: "Set to `no` to skip installing theme(s) (optional, `yes` by default)." default: yes branding: icon: package From 1c562127526b50c5dd5e306a8928285544245bb9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 22 May 2026 22:18:58 +0000 Subject: [PATCH 08/13] Handle boolean install_themes input in theme install condition Agent-Logs-Url: https://github.com/Cecilapp/Action/sessions/eb1f0927-869f-4c24-b085-c46d34ee6056 Co-authored-by: ArnaudLigny <80580+ArnaudLigny@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e8f5c31..2418045 100644 --- a/action.yml +++ b/action.yml @@ -44,7 +44,7 @@ runs: - name: Installing theme(s) shell: bash run: | - if [[ -f "composer.json" && ${{ inputs.install_themes }} = 'yes' ]]; then + if [[ -f "composer.json" && ( "${{ inputs.install_themes }}" = 'yes' || "${{ inputs.install_themes }}" = 'true' ) ]]; then echo "Installing theme(s)..." composer install --prefer-dist --no-dev --no-progress --no-interaction --quiet fi From e14267fc197b68e31594fdcb8042232ac4e51808 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 22 May 2026 22:19:47 +0000 Subject: [PATCH 09/13] Use consistent quoting in install_themes condition Agent-Logs-Url: https://github.com/Cecilapp/Action/sessions/eb1f0927-869f-4c24-b085-c46d34ee6056 Co-authored-by: ArnaudLigny <80580+ArnaudLigny@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2418045..31d07a1 100644 --- a/action.yml +++ b/action.yml @@ -44,7 +44,7 @@ runs: - name: Installing theme(s) shell: bash run: | - if [[ -f "composer.json" && ( "${{ inputs.install_themes }}" = 'yes' || "${{ inputs.install_themes }}" = 'true' ) ]]; then + if [[ -f "composer.json" && ( "${{ inputs.install_themes }}" = "yes" || "${{ inputs.install_themes }}" = "true" ) ]]; then echo "Installing theme(s)..." composer install --prefer-dist --no-dev --no-progress --no-interaction --quiet fi From 5aed185027564bfa75319c37054764d9330f1049 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 22 May 2026 22:20:32 +0000 Subject: [PATCH 10/13] Quote install_themes default value Agent-Logs-Url: https://github.com/Cecilapp/Action/sessions/eb1f0927-869f-4c24-b085-c46d34ee6056 Co-authored-by: ArnaudLigny <80580+ArnaudLigny@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 31d07a1..c9837e6 100644 --- a/action.yml +++ b/action.yml @@ -9,7 +9,7 @@ inputs: description: "Cecil version (optional, last version by default)." install_themes: description: "Set to `no` to skip installing theme(s) (optional, `yes` by default)." - default: yes + default: "yes" branding: icon: package color: white From b5419740738f73f09b65f5d6ddcd845143b52736 Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 May 2026 00:23:59 +0200 Subject: [PATCH 11/13] CI: bump action version and remove PHP setup --- .github/workflows/test.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b02936f..01cfa18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,14 +18,8 @@ jobs: cat > pages/index.md < Date: Sat, 23 May 2026 00:39:35 +0200 Subject: [PATCH 12/13] Reorder options input and update README --- README.md | 8 ++++---- action.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d2f7349..d71407d 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ This GitHub Action builds a [_Cecil_](https://cecil.app) site and uploads a GitH # optional with: version: 8.0.0 # default: latest version - options: -v --config=config.yml # default: "-v" (verbose) install_themes: "yes" # default: "yes" + options: -v --config=config.yml # default: "-v" (verbose) ``` ### Workflow example @@ -25,9 +25,9 @@ The following workflow: 3. setup PHP 4. downloads Cecil 5. installs theme(s) -6. runs Cecil to build the site -7. upload artifact -8. deploys `_site` to GitHub Pages +6. runs Cecil build +7. upload pages artifact +8. deploys to GitHub Pages ```yaml name: Build and deploy to GitHub Pages diff --git a/action.yml b/action.yml index c9837e6..8d46448 100644 --- a/action.yml +++ b/action.yml @@ -2,14 +2,14 @@ name: "Cecil Action" description: "Build a Cecil static site." author: "Arnaud Ligny" inputs: - options: - description: "Cecil options (optional, `-v` by default)." - default: -v version: description: "Cecil version (optional, last version by default)." install_themes: description: "Set to `no` to skip installing theme(s) (optional, `yes` by default)." default: "yes" + options: + description: "Cecil options (optional, `-v` by default)." + default: -v branding: icon: package color: white From 455fd3a499d03c5cdb5541073a6a0dbf0860a8c7 Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Sat, 23 May 2026 00:39:45 +0200 Subject: [PATCH 13/13] Enhance test workflow with deploy and concurrency --- .github/workflows/test.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 01cfa18..76d8d70 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,13 @@ name: test on: push: - branches: [master] + branches: [main, master] workflow_dispatch: +concurrency: + group: pages + cancel-in-progress: true + jobs: build: name: Build static site @@ -23,3 +27,16 @@ jobs: with: version: '8.94.3' options: '-vv' + deploy: + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5