From edf3c165e2378cae7164ad0dfbe7cf2795cb5c74 Mon Sep 17 00:00:00 2001 From: asandikci Date: Wed, 13 Nov 2024 23:27:34 +0300 Subject: [PATCH] Update .github/workflows/build_and_test.yml --- .github/workflows/build_and_test.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 463d19e..732a8c3 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -64,7 +64,19 @@ jobs: - name: Push to "website" branch run: | - echo "do not ready yet" + mkdir website_branch && cd website_branch + git clone https://git.asandikci.com/asandikci.com/web + cd web + git checkout website + rm -rfv . + mv ../../web/_site . + git config --global user.name "Aliberk Sandıkçı (Forgejo Runner CI)" + git config --global user.email git@asandikci.com + git add -A + git commit --all --message "built latest static resources from main" + git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web --all + + - name: Checkout & Deploy run: |