This commit is contained in:
parent
81ab50e565
commit
5e6112fb18
2 changed files with 50 additions and 8 deletions
|
@ -11,20 +11,24 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: pages
|
ref: pages
|
||||||
path: '_site'
|
path: _site
|
||||||
- name: Setup cache directory
|
- name: Setup cache directory
|
||||||
run: mkdir .jekyll-cache
|
run: mkdir .jekyll-cache
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bundle install
|
run: bundle install
|
||||||
- name: Build the site
|
- name: Build the site
|
||||||
run: jekyll build --trace
|
run: jekyll build --trace
|
||||||
- name: Publish
|
- name: Check source status
|
||||||
|
run: |
|
||||||
|
git status
|
||||||
|
- name: Check site status
|
||||||
run: |
|
run: |
|
||||||
cd _site
|
cd _site
|
||||||
touch .nojekyll
|
|
||||||
git config user.name "Scribe"
|
|
||||||
git config user.email "scribe@niblock.tech"
|
|
||||||
git add -A
|
|
||||||
git status
|
git status
|
||||||
git commit -m "Automated Publish"
|
# touch .nojekyll
|
||||||
git push
|
# 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
|
||||||
|
|
38
README.md
Normal file
38
README.md
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# TTRPG Compendium
|
||||||
|
|
||||||
|
Static, Jekyll-based site for all tabletop RPG-related stuff I write about.
|
||||||
|
|
||||||
|
### Adventures
|
||||||
|
|
||||||
|
Some of the adventures I've written up or am working on.
|
||||||
|
|
||||||
|
### Journals
|
||||||
|
|
||||||
|
Both character and campaign journals
|
||||||
|
|
||||||
|
### Tools
|
||||||
|
|
||||||
|
Stuff that helps with TTRPG play.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
For just running locally, easiest is to use a container:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run --rm \
|
||||||
|
--volume="$PWD:/srv/jekyll:Z" \
|
||||||
|
--publish [::1]:4000:4000 \
|
||||||
|
jvconseil/jekyll-docker \
|
||||||
|
jekyll serve
|
||||||
|
```
|
||||||
|
|
||||||
|
For modifying and publishing newly generated content, the following process
|
||||||
|
works pretty well:
|
||||||
|
|
||||||
|
1. Remove the `_site` directory.
|
||||||
|
2. Clone the "pages" branch into `_site`:
|
||||||
|
`git clone -b pages ssh://git@forge.niblock.tech:8222/vagabond/ttrpg-compendium.git _site`
|
||||||
|
3. Run the container from above step. It will now build into `_site`, which is
|
||||||
|
linked to the "pages" branch.
|
||||||
|
4. When satisfied with changes, be sure to push both from `_site` and the base
|
||||||
|
repository to keep the source and the results up-to-date.
|
Loading…
Reference in a new issue