ttrpg-compendium/.forgejo/workflows/publish.yaml

33 lines
1,008 B
YAML
Raw Normal View History

2024-02-27 00:42:22 +00:00
on: [push]
jobs:
jekyll:
runs-on: docker
2024-02-27 03:06:46 +00:00
container:
image: jvconseil/jekyll-docker
2024-02-27 00:42:22 +00:00
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout built site
uses: actions/checkout@v4
with:
ref: pages
2024-06-14 20:46:06 +00:00
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: Include the Codeberg pages .domains file
run: cp ${{ env.GITHUB_WORKSPACE }}/.domains ${{ env.GITHUB_WORKSPACE }}/_site/.domains
2024-06-14 21:02:17 +00:00
- name: Publish Site
run: |
cd _site
2024-06-14 20:48:13 +00:00
git config --global --add safe.directory /workspace/vagabond/ttrpg-compendium/_site
2024-06-14 20:51:08 +00:00
git config user.name "Scribe [bot]"
git config user.email "scribe@niblock.tech"
git add -A .
git status
2024-06-14 20:51:08 +00:00
git commit -m "Automated Publish"
git push