mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-12 22:06:18 +00:00
Update build.yml to deploy to GitHub pages
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user