From dcaafa474bb3f7b6f2e4dac0a2e4eb6720d0839b Mon Sep 17 00:00:00 2001 From: Selim Date: Thu, 27 Aug 2026 11:51:13 +0300 Subject: [PATCH 1/3] Add GitHub Actions workflow for static site deployment This workflow automates the deployment of static content to GitHub Pages on pushes to the specified branch. --- .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..80bd534 --- /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: ["26Q2.5"] + + # 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@v5 From cac3dc7a437ebc411d28e23ad827234959208892 Mon Sep 17 00:00:00 2001 From: Selim Date: Thu, 27 Aug 2026 11:53:21 +0300 Subject: [PATCH 2/3] fix: deploy only docs to GitHub Pages --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f31c3df..1b0c7db 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -31,4 +31,4 @@ jobs: path: ./docs - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 From 5fd4f239fd316e8149461bc964a9040995352192 Mon Sep 17 00:00:00 2001 From: Selim Date: Thu, 27 Aug 2026 11:53:27 +0300 Subject: [PATCH 3/3] fix: configure static Pages deployment --- .github/workflows/static.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 80bd534..1b0c7db 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,28 +1,20 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: Deploy CodeSnip to GitHub Pages on: - # Runs on pushes targeting the default branch push: branches: ["26Q2.5"] - - # 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 + cancel-in-progress: true jobs: - # Single deploy job since we're just deploying deploy: environment: name: github-pages @@ -31,13 +23,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Pages + - name: Configure Pages uses: actions/configure-pages@v5 - - name: Upload artifact + - name: Upload site artifact uses: actions/upload-pages-artifact@v3 with: - # Upload entire repository - path: '.' + path: ./docs - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v5