Skip to content

Commit a445762

Browse files
Try to deploy
1 parent c33431b commit a445762

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,16 @@ jobs:
1919
- name: Build Site
2020
run: |
2121
source .venv/bin/activate
22-
mkdocs build
22+
mkdocs build
23+
24+
# Copy the built files to the server (only if this is on master branch)
25+
- name: Deploy Site
26+
if: github.ref == 'refs/heads/master'
27+
uses: easingthemes/ssh-deploy@v5
28+
with:
29+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
30+
ARGS: "-rlgoDzvc -i --delete"
31+
SOURCE: "site/"
32+
REMOTE_HOST: mbed-ce.dev
33+
REMOTE_USER: website-deploy
34+
TARGET: /var/www/html

0 commit comments

Comments
 (0)