From a9435f9a41fc532cd7d221b1ffea0ea24c379189 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Tue, 18 Jun 2024 19:13:23 -0400 Subject: [PATCH] Enable Forgejo Actions build --- .forgejo/workflows/publish.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .forgejo/workflows/publish.yaml diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..67c477f --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -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