coyotte508 HF staff commited on
Commit
5aa963a
β€’
1 Parent(s): c379e82

πŸš€ Add github action

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +18 -0
.github/workflows/deploy.yml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: deploy
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Install SSH Key
13
+ uses: shimataro/ssh-key-action@v2
14
+ with:
15
+ key: ${{ secrets.SSH_PRIVATE_KEY }}
16
+ known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
17
+ - name: Deploy
18
+ run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "hostnamectl && cd bergere-enchantee && git fetch && git checkout $GITHUB_SHA && pnpm install && pnpm run build && pm2 reload bergere"