diff --git a/.github/workflows/filedeploy.yml b/.github/workflows/filedeploy.yml index 9485f493464c3f12b9c0e4d1bf600057039a7429..124cc6bd923c9e610463a02c69380afd0fb2cc45 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/