Skip to content

Commit

Permalink
Merge pull request #123 from netz39/hotfix/gh-page_build-errors
Browse files Browse the repository at this point in the history
Improve and refactor actions
  • Loading branch information
MG-5 authored Mar 27, 2024
2 parents 05d5d99 + ea00da6 commit ab7f484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
name: Deploy Jekyll and upload GitHub Pages

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -30,23 +30,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cached checkout
uses: nschloe/action-cached-lfs-checkout@v1
# Use these to explicitly include/exclude files:
# with:
# include: "*"
# exclude: ""
uses: netz39/action-cached-lfs-checkout@main

- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: Install packages
continue-on-error: true
run: |
docker pull sylhare/type-on-strap
docker pull sylhare/jekyll
- name: "Upload artifact"
uses: actions/upload-pages-artifact@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ jobs:
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: Install packages
continue-on-error: true
run: |
docker pull sylhare/type-on-strap
docker pull sylhare/jekyll

0 comments on commit ab7f484

Please sign in to comment.