Switch build action so we not use the deprecated gh-pages gem

This commit is contained in:
MG-5 2023-10-27 00:40:04 +02:00
parent 130a25515b
commit 51b20b0a3d

View file

@ -1,5 +1,5 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages # Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled name: Deploy Jekyll site to Pages
on: on:
# Runs on pushes targeting the default branch # Runs on pushes targeting the default branch
@ -32,14 +32,22 @@ jobs:
# with: # with:
# include: "*" # include: "*"
# exclude: "" # exclude: ""
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages - name: Setup Pages
id: pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
- name: Build with Jekyll - name: Build with Jekyll
uses: actions/jekyll-build-pages@v1 # Outputs to the './_site' directory by default
with: run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
source: ./ env:
destination: ./_site JEKYLL_ENV: production
- name: Upload artifact - name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v2 uses: actions/upload-pages-artifact@v2
# Deployment job # Deployment job