Skip to content

Commit

Permalink
ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Nicolle committed Feb 11, 2024
1 parent 82c0bc7 commit 72fa4f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
- develop

env:
PUBLIC: "~/motsflex/public"
PUBLIC: "~/motsflex-save/public"
ASSETS: "$PUBLIC/assets"
INDEX_HTML: "$PUBLIC/index.html"
DICOS: "~/dicos"
SERVER: "~/motsflex/server.js"
SERVER: "~/motsflex-save/server.js"
SSH_TARGET: ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }}

jobs:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
run: npm run build

- name: Deploy
if: ${{ success() }}
if: ${{ false && success() }}
run: |
if [[ "${{ env.DEPLOY_ASSETS }}" == 'true' ]]; then
echo "Deploying JS assets"
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/ssh-generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: ssh-generate

on:
pull_request:
branches:
- develop

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Adding Known Hosts
run: ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts

0 comments on commit 72fa4f2

Please sign in to comment.