From ddf9cf2ab3a6e3433992d625fe1d2e1f40117af3 Mon Sep 17 00:00:00 2001 From: craisin Date: Thu, 8 Oct 2026 20:47:51 -0700 Subject: [PATCH] add action --- .gitea/workflows/update_site.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/update_site.yml 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