name: Deploy to Production on: push: tags: - '*' jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: ref: main fetch-depth: 0 - name: Push to release branch run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" git checkout release || git checkout -b release git merge --ff-only main git push origin release