Enable Forgejo Actions build
This commit is contained in:
parent
8a1690be26
commit
a9435f9a41
1 changed files with 30 additions and 0 deletions
30
.forgejo/workflows/publish.yaml
Normal file
30
.forgejo/workflows/publish.yaml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
jekyll:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: jvconseil/jekyll-docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Checkout built site
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: pages
|
||||||
|
path: _site
|
||||||
|
- name: Setup cache directory
|
||||||
|
run: mkdir .jekyll-cache
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bundle install
|
||||||
|
- name: Build the site
|
||||||
|
run: jekyll build --trace
|
||||||
|
- name: Publish Site
|
||||||
|
run: |
|
||||||
|
cd _site
|
||||||
|
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}/_site
|
||||||
|
git config user.name "Scribe [bot]"
|
||||||
|
git config user.email "scribe@niblock.tech"
|
||||||
|
git add -A .
|
||||||
|
git status
|
||||||
|
git commit -m "Automated Publish"
|
||||||
|
git push
|
Loading…
Reference in a new issue