diff --git a/.gitea/workflows/update_site.yml b/.gitea/workflows/update_site.yml new file mode 100644 index 0000000..3923c7c --- /dev/null +++ b/.gitea/workflows/update_site.yml @@ -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 "kahkaicyap@gmail.com" + git add . + git commit -m "Update content" + git push origin master + env: + GITHUB_TOKEN: ${{secrets.GH_TOKEN}} \ No newline at end of file