mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-19 04:20:10 +01:00
Merge pull request #46 from netz39/hotfix_jekyll-build-action
Switch build action so we not use the deprecated gh-pages gem
This commit is contained in:
commit
293432f8a4
1 changed files with 13 additions and 5 deletions
18
.github/workflows/jekyll-gh-pages.yml
vendored
18
.github/workflows/jekyll-gh-pages.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue