chore: Bump version (again) #42
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: Tagged release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| gh_tagged_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Wait for CI | |
| uses: fountainhead/action-wait-for-check@v1.2.0 | |
| id: wait-for-ci | |
| with: | |
| token: ${{ secrets.GH_DEPLOY_TOKEN }} | |
| checkName: CI | |
| # Wait for one hour | |
| timeoutSeconds: 3600 | |
| intervalSeconds: 60 | |
| - name: Fail if CI failed | |
| if: steps.wait-for-ci.outputs.conclusion != 'success' | |
| run: | | |
| echo "CI failed or didn't complete in time" | |
| exit 1 | |
| - uses: actions/checkout@v4.2.2 | |
| - uses: actions/setup-python@v5.4.0 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: 0.7.2 | |
| python-version: 3.12 | |
| - name: Install airflow-dbt-python with uv | |
| run: uv sync --no-dev | |
| - name: Build airflow-dbt-python with uv | |
| run: uv build | |
| - name: Set prerelease variable | |
| run: echo "IS_PRERELEASE=$(if $(uv version --short | grep -qP '^[0-9]+\.[0-9]+\.[0-9]+$'); then echo 'false'; else echo 'true'; fi)" >> $GITHUB_ENV | |
| - name: Set release git tag | |
| run: echo "RELEASE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV | |
| - name: Check tag matches package version | |
| run: if [[ "$(uv version --short)" == ${RELEASE_TAG/v/} ]]; then exit 0; else exit 1; fi | |
| - name: Release new tag | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| prerelease: ${{ fromJSON(env.IS_PRERELEASE) }} | |
| token: ${{ secrets.GH_DEPLOY_TOKEN }} | |
| files: | | |
| dist/* |