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: |