diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 854fbc3..0007583 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,7 +46,18 @@ jobs: cat .env echo $APP_NAME + - name: Upload .env file + uses: actions/upload-artifact@v4 + with: + name: env-file + path: .env + - uses: actions/checkout@v4 + - name: Download .env file + uses: actions/download-artifact@v4 + with: + name: env-file + path: . - name: Build app run: | set -a && source .env && set +a @@ -68,6 +79,11 @@ jobs: - /var/docker-web:/var/docker-web steps: - uses: actions/checkout@v4 + - name: Download .env file + uses: actions/download-artifact@v4 + with: + name: env-file + path: . - name: Deploy run: | set -a && source .env && set +a