From 3e56cec0f2162523d66f8f60660091e12a306369 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Fri, 14 Jun 2024 13:14:09 -0400 Subject: [PATCH] Attempt automated publish to pages branch --- .forgejo/workflows/publish.yaml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 73fe8dd..41ced17 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -5,8 +5,26 @@ jobs: container: image: jvconseil/jekyll-docker steps: - - uses: actions/checkout@v4 - - run: mkdir .jekyll-cache - - run: bundle install - - run: jekyll build --trace - - run: ls ${{ github.workspace }} + - 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 + run: | + cd _site + touch .nojekyll + git config user.name "Scribe" + git config user.email "scribe@niblock.tech" + git add -A + git status + git commit -m "Automated Publish" + git push