name: Deploy to Production on: push: tags: - 'v*' jobs: deploy: runs-on: splendid-bear steps: - name: Deploy 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' '${{ secrets.PROD_ENV_FILE }}' > .env docker compose up -d --build