Skip to content

Commit ad8bd02

Browse files
committed
Setup CI workflow for playground deployment
1 parent bf5aa36 commit ad8bd02

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/playground.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: playground
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
deploy:
9+
environment:
10+
name: Playground
11+
url: https://playground.pysnippet.org/fastapi-oauth2
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Run deployment script on server
15+
uses: appleboy/ssh-action@master
16+
with:
17+
host: ${{ secrets.HOST }}
18+
username: ${{ secrets.USERNAME }}
19+
key: ${{ secrets.KEY_ED25519 }}
20+
port: ${{ secrets.PORT }}
21+
script: sh ~/fastapi-oauth2/examples/demonstration/deploy.sh

0 commit comments

Comments
 (0)