mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-18 20:10:12 +01:00
Merge pull request #123 from netz39/hotfix/gh-page_build-errors
Improve and refactor actions
This commit is contained in:
commit
ab7f4841d0
2 changed files with 3 additions and 19 deletions
|
@ -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 and upload GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
|
@ -30,23 +30,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cached checkout
|
- name: Cached checkout
|
||||||
uses: nschloe/action-cached-lfs-checkout@v1
|
uses: netz39/action-cached-lfs-checkout@main
|
||||||
# Use these to explicitly include/exclude files:
|
|
||||||
# with:
|
|
||||||
# include: "*"
|
|
||||||
# exclude: ""
|
|
||||||
- name: Build the site in the jekyll/builder container
|
- name: Build the site in the jekyll/builder container
|
||||||
run: |
|
run: |
|
||||||
docker run \
|
docker run \
|
||||||
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
|
-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"
|
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"
|
- name: "Upload artifact"
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
|
@ -16,10 +16,3 @@ jobs:
|
||||||
docker run \
|
docker run \
|
||||||
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
|
-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"
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue