Update supported versions matrix (#137) #32
Workflow file for this run
This file contains 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 Tests to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-test | |
with: | |
token: ${{ secrets.GH_DEPLOY_TOKEN }} | |
checkName: CI | |
ref: ${{ github.sha }} | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.3.2 | |
- name: Install airflow-dbt-python with Poetry | |
run: poetry install | |
- name: Build airflow-dbt-python with Poetry | |
run: poetry build | |
- name: Set prerelease variable | |
run: echo "IS_PRERELEASE=$(if $(poetry version -s | 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 [[ "$(poetry version -s)" == ${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/* |