Files
public-notes/.gitea/workflows/update_site.yml
T
craisin 05f483490b
Update Website / build (push) Failing after 5s
fix action
2026-10-08 20:52:22 -07:00

31 lines
859 B
YAML

name: Update Website
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: content
- name: Clone repository
run: |
git clone https://x-access-token:${GH_TOKEN}@github.com/craisined/public-notes-quartz.git
rm -rf public-notes-quartz/content/*
cp -a content/. public-notes-quartz/content/
cd public-notes-quartz
git config user.name "craisined"
git config user.email "[email protected]"
git add .
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
fi
git commit -m "Update content"
git push origin master
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}