From b79799380100724b6a87488d4ba4bbd3b2e10fe8 Mon Sep 17 00:00:00 2001 From: Bye <bye@byecorps.com> Date: Thu, 1 Sep 2022 19:30:19 +0100 Subject: [PATCH] Update filedeploy.yml --- .github/workflows/filedeploy.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/filedeploy.yml b/.github/workflows/filedeploy.yml index 9485f49..124cc6b 100644 --- a/.github/workflows/filedeploy.yml +++ b/.github/workflows/filedeploy.yml @@ -23,6 +23,7 @@ jobs: # Single deploy job since we're just deploying build: runs-on: ubuntu-latest + environment: deathbyhamster.com steps: - name: Checkout uses: actions/checkout@v3 @@ -32,17 +33,12 @@ jobs: directory: . output: build add_suffix: false - deploy: - runs-on: ubuntu-latest - environment: deathbyhamster.com - needs: build - steps: - - name: Install SSH Key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.SSH_TOKEN }} - known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} - - name: Adding Known Hosts - run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - - name: Deploy with rsync - run: rsync -arvz build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/dbh_game/ifyouaretypingthisyouareamoron/ + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_TOKEN }} + known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} + - name: Adding Known Hosts + run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts + - name: Deploy with rsync + run: rsync -arvz build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/dbh_game/ifyouaretypingthisyouareamoron/ -- GitLab