diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f21fbab..39077a4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: @@ -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" diff --git a/.github/workflows/ssh-generate.yml b/.github/workflows/ssh-generate.yml new file mode 100644 index 0000000..d51baba --- /dev/null +++ b/.github/workflows/ssh-generate.yml @@ -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