Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
introkun committed Mar 27, 2024
1 parent 7e65cfa commit 67917e6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ on:
workflow_dispatch:

jobs:
update-known-hosts:
deploy:
runs-on: ubuntu-latest

steps:
- name: Update SSH known hosts
run: |
ssh-keygen -R github.com
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Update GitHub SSH Key
uses: appleboy/[email protected]
with:
host: ${{secrets.SSH_HOST}}
key: ${{secrets.SSH_KEY}}
username: ${{secrets.SSH_USERNAME}}

deploy:
runs-on: ubuntu-latest
needs: update-known-hosts
script: |
ssh-keygen -R github.com
ssh-keyscan github.com >> ~/.ssh/known_hosts
steps:
- name: Deploy app
uses: appleboy/[email protected]
with:
Expand Down

0 comments on commit 67917e6

Please sign in to comment.