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