name: Deploy to Production on: push: tags: - 'v*' jobs: deploy: runs-on: splendid-bear steps: - name: Deploy env: PROD_ENV_FILE: ${{ secrets.PROD_ENV_FILE }} run: | set -e export HOME=/tmp git config --global --add safe.directory "${{ vars.PROD_APP_DIR }}" cd "${{ vars.PROD_APP_DIR }}" git fetch --tags git checkout "${{ gitea.ref_name }}" printf '%s' "$PROD_ENV_FILE" > .env docker compose up -d --build