1 parent
a8592e1334
commit
ddf9cf2ab3
1 file changed
+27
@@ -0,0 +1,27 @@
|
||||
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://github.com/craisined/public-notes.git
|
||||
rm public-notes/content/*
|
||||
mv content/* public-notes/content/
|
||||
cd public-notes
|
||||
git config user.name "craisined"
|
||||
git config user.email "[email protected]"
|
||||
git add .
|
||||
git commit -m "Update content"
|
||||
git push origin master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
|
||||
Reference in new issue
Block a user