From be60303bed00d4bb42767f44608aca1992ad4cb2 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Sat, 18 Feb 2023 16:05:45 +0100 Subject: [PATCH 1/7] Add setup-ruby action to jekyll-gh-pages.yml --- .github/workflows/jekyll-gh-pages.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 0acc24c..91c3da8 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -29,6 +29,11 @@ jobs: uses: actions/checkout@v3 - name: Setup Pages uses: actions/configure-pages@v2 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + cache-version: 0 # Increment this number if you need to re-download cached gems - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: From 2c340803de67b03a6148f83684ddc687d4e1887f Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Sat, 18 Feb 2023 16:07:41 +0100 Subject: [PATCH 2/7] Trigger on pull request --- .github/workflows/jekyll-gh-pages.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 91c3da8..71988b6 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -3,8 +3,10 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled on: # Runs on pushes targeting the default branch - push: - branches: ["main"] + pull_request: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From af833a92ae0c3f325582a6deee259565f6dc9f64 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Sun, 19 Feb 2023 08:53:49 +0100 Subject: [PATCH 3/7] fixup! Trigger on pull request --- .github/workflows/jekyll-gh-pages.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 71988b6..c3a4ec0 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -2,16 +2,8 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled on: - # Runs on pushes targeting the default branch pull_request: - schedule: - - cron: "0 0 * * *" - workflow_dispatch: - # 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 From fa0355d1d5b162219750b98403d01661f0b4ad2e Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Sun, 19 Feb 2023 08:55:57 +0100 Subject: [PATCH 4/7] Add ruby version file --- .ruby-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..49cdd66 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.7.6 From 988ae7ef89daf2df20b38f98d4c7a473dfbceceb Mon Sep 17 00:00:00 2001 From: Arthur Saunier Date: Sat, 19 Oct 2024 18:59:59 +0100 Subject: [PATCH 5/7] update theme to remote --- Gemfile | 3 +-- _config.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 006cb2c..96a1e3a 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,6 @@ source 'https://rubygems.org' group :jekyll_plugins do gem "jekyll-include-cache" gem "jemoji" - gem "minimal-mistakes-jekyll" - gem 'jekyll-sass-converter', '~> 2.2' + gem "github-pages" end diff --git a/_config.yml b/_config.yml index afa2986..9f1dae8 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,4 @@ -theme: minimal-mistakes-jekyll +remote_theme: "mmistakes/minimal-mistakes@4.26.2" liquid: error_mode: strict From 345b9b4b438cdec96007c359ecf70cda2e2ceca1 Mon Sep 17 00:00:00 2001 From: Arthur Saunier Date: Sat, 19 Oct 2024 19:34:23 +0100 Subject: [PATCH 6/7] update workflow action versions --- .github/workflows/jekyll-gh-pages.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index c3a4ec0..71e81da 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -20,21 +20,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v2 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - cache-version: 0 # Increment this number if you need to re-download cached gems + uses: actions/configure-pages@v5 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 # Deployment job deploy: @@ -46,4 +41,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 From cf1490e5cfba1bd5895ecdb3a117813c96319c4e Mon Sep 17 00:00:00 2001 From: Arthur Saunier Date: Sat, 19 Oct 2024 19:52:26 +0100 Subject: [PATCH 7/7] add cmd for deploy on push --- .github/workflows/jekyll-gh-pages.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 71e81da..10c2c0d 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -2,7 +2,12 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled on: - pull_request: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: permissions: contents: read