Skip to content

Commit 5ea6804

Browse files
committed
add simple workflow to update the website
1 parent 2d9e2fa commit 5ea6804

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy
2+
on: [workflow_dispatch]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Pull
8+
uses: appleboy/ssh-actions@v0.1.10
9+
with:
10+
host: ${{ secrets.HOSTNAME }}
11+
username: ${{ secrets.USERNAME }}
12+
key: ${{ secrets.KEY }}
13+
port: ${{ secrets.PORT }}
14+
script: |
15+
git checkout ${{ github.sha }}
16+
npm i
17+
npm run build
18+
npm run start
19+

0 commit comments

Comments
 (0)