Skip to content

Commit

Permalink
Ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tõnis Saarjõe committed Sep 15, 2023
1 parent e364884 commit 67f33e0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
node-version: '17' # Adjust to the appropriate Node.js version
- name: Install dependencies
run: npm install --force
- name: Install SSH keys
run: |
mkdir -p ~/.ssh
touch ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "${{ secrets.DEPLOY_RSA }}" > ~/.ssh/id_rsa
ssh-keyscan -H ituk.ee > ~/.ssh/known_hosts

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DEPLOY_RSA }}
known_hosts: unnecessary

- name: Adding Known Hosts
run: ssh-keyscan -H deploy >> ~/.ssh/known_hosts
- name: Build
run: npm run build -prod
- name: Deploy
Expand Down

0 comments on commit 67f33e0

Please sign in to comment.