From c69e3ccd10778a9d3825a787eefa4ad4c3c880cb Mon Sep 17 00:00:00 2001 From: Peter Amende Date: Sun, 25 Jan 2026 13:19:12 +0100 Subject: [PATCH 1/3] add missing deployment instructions. fix #23 --- .github/workflows/jekyll.yml | 53 ++++++++++++++++++++++++++++++++++++ Gemfile | 15 ++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/jekyll.yml create mode 100644 Gemfile diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 0000000..5501ab7 --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,53 @@ +name: Build and Deploy Jekyll Site + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.3' + bundler-cache: true + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Build with Jekyll + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: github-pages + path: _site/ + retention-days: 1 + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..539b339 --- /dev/null +++ b/Gemfile @@ -0,0 +1,15 @@ +source "https://rubygems.org" + +gem "jekyll", "~> 4.3" +gem "minimal-mistakes-jekyll" +gem "github-pages", group: :jekyll_plugins + +group :jekyll_plugins do + gem "jekyll-feed", "~> 0.12" + gem "jekyll-seo-tag" + gem "jekyll-sitemap" +end + +platforms :mingw, :x64_mingw, :mswin do + gem "wdm", "~> 0.1.1" +end From ee2d8a7f25de2e2c1d30413cec901c5876f1496e Mon Sep 17 00:00:00 2001 From: Peter Amende Date: Sun, 25 Jan 2026 13:27:13 +0100 Subject: [PATCH 2/3] fix gem version conflicts --- Gemfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 539b339..0694631 100644 --- a/Gemfile +++ b/Gemfile @@ -1,12 +1,10 @@ source "https://rubygems.org" -gem "jekyll", "~> 4.3" -gem "minimal-mistakes-jekyll" -gem "github-pages", group: :jekyll_plugins +gem "github-pages", "~> 228", :group => :jekyll_plugins group :jekyll_plugins do gem "jekyll-feed", "~> 0.12" - gem "jekyll-seo-tag" + gem "jekyll-seo-tag", "~> 2.6" gem "jekyll-sitemap" end From b64f39830e212c446e9d515f359873fa76b42eb5 Mon Sep 17 00:00:00 2001 From: Peter Amende Date: Sun, 25 Jan 2026 13:34:36 +0100 Subject: [PATCH 3/3] stop PR from attempts to deploy --- .github/workflows/jekyll.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 5501ab7..eeddd3d 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -42,6 +42,7 @@ jobs: retention-days: 1 deploy: + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}