| 1 | name: Squad Release |
| 2 | # python project — configure build, test, and release commands below |
| 3 | |
| 4 | on: |
| 5 | push: |
| 6 | branches: [main] |
| 7 | |
| 8 | permissions: |
| 9 | contents: write |
| 10 | |
| 11 | jobs: |
| 12 | release: |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 16 | with: |
| 17 | fetch-depth: 0 |
| 18 | |
| 19 | - name: Build and test |
| 20 | run: | |
| 21 | # TODO: Add your python build/test commands here |
| 22 | # Go: go test ./... |
| 23 | # Python: pip install -r requirements.txt && pytest |
| 24 | # .NET: dotnet test |
| 25 | # Java (Maven): mvn test |
| 26 | # Java (Gradle): ./gradlew test |
| 27 | echo "No build commands configured — update squad-release.yml" |
| 28 | |
| 29 | - name: Create release |
| 30 | env: |
| 31 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 32 | run: | |
| 33 | # TODO: Add your release commands here (e.g., git tag, gh release create) |
| 34 | echo "No release commands configured — update squad-release.yml" |