We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7533804 commit c263e1aCopy full SHA for c263e1a
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,19 @@
1
+name: Deploy
2
+
3
+on:
4
+ workflow_run:
5
+ workflows: [Tests]
6
+ types: [completed]
7
+ branches: [master]
8
9
+jobs:
10
+ deploy:
11
+ if: github.event.workflow_run.conclusion == 'success'
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - run: |
15
+ mkdir -p ~/.ssh
16
+ echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
17
+ chmod 600 ~/.ssh/id_ed25519
18
+ ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
19
+ ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}
0 commit comments