Update build.yml to deploy to GitHub pages

This commit is contained in:
Raymond Li
2023-10-31 17:34:10 -04:00
committed by GitHub
parent a34c176bcc
commit e5e56c04a2

View File

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