From 7fa824cde7d22143a8afd271a739089df4e7981b Mon Sep 17 00:00:00 2001 From: Mauro Druwel <46003176+MauroDruwel@users.noreply.github.com> Date: Thu, 25 Dec 2025 11:23:48 +0100 Subject: [PATCH 1/4] Create pr.yml --- .github/workflows/pr.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..d23254c --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,24 @@ +# .github/workflows/preview.yml +name: Deploy PR previews + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +concurrency: preview-${{ github.ref }} + +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: . \ No newline at end of file From 7b6134443915df6916b74d26f46513b845ba10c0 Mon Sep 17 00:00:00 2001 From: Mauro Druwel <46003176+MauroDruwel@users.noreply.github.com> Date: Thu, 25 Dec 2025 18:11:19 +0100 Subject: [PATCH 2/4] Create static.yml --- .github/workflows/static.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..f2c9e97 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# 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. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 4f003c1acf6fb4f1caffbc4bcbc4f4322c6fb992 Mon Sep 17 00:00:00 2001 From: Mauro Druwel Date: Thu, 25 Dec 2025 19:15:59 +0100 Subject: [PATCH 3/4] Update so they don't overwrite eachother --- .github/workflows/static.yml | 56 ++++++++++-------------------------- 1 file changed, 15 insertions(+), 41 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index f2c9e97..8202fb5 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,43 +1,17 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages - +# .github/workflows/deploy.yml +name: Deploy on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# 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. -concurrency: - group: "pages" - cancel-in-progress: false - + push: + branches: + - main jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: . + branch: gh-pages + clean-exclude: pr-preview + force: false \ No newline at end of file From 40acd2fc5a0da2896cfe44dfb9d4dbc92762de5f Mon Sep 17 00:00:00 2001 From: Mauro Druwel Date: Thu, 25 Dec 2025 19:16:37 +0100 Subject: [PATCH 4/4] Update ci/cd one last time --- .github/workflows/pr.yml | 1 - .github/workflows/static.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index d23254c..4596069 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,3 @@ -# .github/workflows/preview.yml name: Deploy PR previews on: diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 8202fb5..6a42405 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,4 +1,3 @@ -# .github/workflows/deploy.yml name: Deploy on: push: