feat: add af-stable branch for end-user installs #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: AF Tag Release | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - af-main | |
| permissions: | |
| contents: write | |
| jobs: | |
| tag: | |
| if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'af-release') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Read version and tag | |
| run: | | |
| VERSION=$(python3 -c " | |
| import tomllib | |
| with open('pyproject.toml', 'rb') as f: | |
| print(tomllib.load(f)['project']['version']) | |
| ") | |
| TAG="af-v${VERSION}" | |
| echo "Tagging ${TAG}" | |
| git tag "$TAG" | |
| git push origin "$TAG" | |
| - name: Update af-stable branch | |
| run: | | |
| git push origin HEAD:refs/heads/af-stable --force |