From e5e56c04a219764c89835a99243797fcef42fe1c Mon Sep 17 00:00:00 2001 From: Raymond Li Date: Tue, 31 Oct 2023 17:34:10 -0400 Subject: [PATCH] Update build.yml to deploy to GitHub pages --- .github/workflows/build.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94d8ba2e..7e5d9d9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,21 +43,9 @@ jobs: name: 🚀 Deploy runs-on: ubuntu-latest needs: build - environment: - name: Website - url: https://dotio.theaninova.de steps: - - name: 📦 Download build artifacts - uses: actions/download-artifact@v2.1.1 - with: - name: build - path: build - - name: 🚀 Deploy - uses: SamKirkland/web-deploy@v1 - with: - target-server: ${{ secrets.SSH_SERVER }} - destination-path: ~/public_html/ - source-path: ./build/ - remote-user: ${{ secrets.SSH_USER }} - private-ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - ssh-port: ${{ secrets.SSH_PORT }} + - run : git config user.name github-actions + - run : git config user.email github-actions@github.com + - run : git --work-tree build add --all + - run : git commit -m "Automatic Deploy action run by github-actions" + - run : git push origin HEAD:gh-pages --force