From 39e9d32c4d4b963aec2ad09dcbc6670c38867dac Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 20 Apr 2024 22:13:52 +0800 Subject: [PATCH] gogogo --- .github/workflows/deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..1393620 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,25 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run deploy script + run: python3 deploy.py + + - name: Commit and push changes + run: | + git config --global user.name 'GitHub Actions' + git config --global user.email 'actions@github.com' + git add . + git commit -m "Deploy changes" + git push --force origin HEAD:deploy