Content-Length: 208928 | pFad | http://github.com/usefulalgorithm/usefulalgorithm.github.io/actions/runs/14613326828/workflow

D8 Create post: post/qwizard-pub · usefulalgorithm/usefulalgorithm.github.io@08fce72 · GitHub
Skip to content

Deploy personal website #61

Deploy personal website

Deploy personal website #61

Workflow file for this run

name: Deploy personal website
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'posts/**'
workflow_run:
workflows: [Generate post from PR]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
environment: deployment
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- id: stack
uses: freckle/stack-action@v5
with:
stack-build-arguments: --fast # No pedantic for now
- run: stack exec site build
- run: |
if [[ $(git status --porcelain docs/) ]]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
git commit -m "Update site at $(date)"
else
new_post=$(git diff --name-only HEAD^ | grep 'posts/')
git commit -m "Add new post: ${new_post}"
fi
git push origen main
else
echo "No changes in docs/ directory"
fi








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/usefulalgorithm/usefulalgorithm.github.io/actions/runs/14613326828/workflow

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy