From 45668b00474042229033638e2630d96c84d72a23 Mon Sep 17 00:00:00 2001 From: Osinachi Chukwujama Date: Fri, 9 Aug 2024 16:39:25 +0100 Subject: [PATCH] chore: change position of app.env workflow run --- .github/workflows/dev-deploy.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml index 4665413..70fa703 100644 --- a/.github/workflows/dev-deploy.yml +++ b/.github/workflows/dev-deploy.yml @@ -62,7 +62,7 @@ jobs: steps: - name: Create app.env file - uses: ./actions/create-env-action + uses: ../actions/create-env-action with: APP_NAME: "development" APP_URL: "https://deployment.api-golang.boilerplate.hng.tech" @@ -83,6 +83,15 @@ jobs: MAIL_PORT: ${{ secrets.MAIL_PORT }} MIGRATE: "true" + - name: Copy app.env to server + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ env.SSH_HOST }} + username: ${{ env.SSH_USERNAME }} + password: ${{ env.SSH_PASSWORD }} + source: app.env + target: "~/deployments/development" + - name: Update app with latest changes uses: appleboy/ssh-action@v1.0.3 with: @@ -94,15 +103,6 @@ jobs: git reset --hard git pull origin dev - - name: Copy app.env to server - uses: appleboy/scp-action@v0.1.7 - with: - host: ${{ env.SSH_HOST }} - username: ${{ env.SSH_USERNAME }} - password: ${{ env.SSH_PASSWORD }} - source: app.env - target: "~/deployments/development" - - name: Restart containers uses: appleboy/ssh-action@v1.0.3 with: