diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e407fec..96d4e4e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,8 +38,6 @@ jobs: needs: test-and-build runs-on: self-hosted if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' - env: - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_KEY }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -56,6 +54,8 @@ jobs: npm run build - name: Deploy release + env: + SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_KEY }} run: | set -eux