Updating adapter dependencies #1
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
# **what?** | |
# Release workflow provides the following steps: | |
# - checkout the given commit; | |
# - validate version in sources and changelog file for given version; | |
# - run unit tests against given commit; | |
# - build and package that SHA; | |
# - release it to GitHub and PyPI with that specific build; | |
# | |
# **why?** | |
# Ensure an automated and tested release process | |
# | |
# **when?** | |
# This will only run manually. Run this workflow only after the | |
# version bump workflow is completed and related changes are reviewed and merged. | |
# | |
name: Release new version to PyPI | |
on: # yamllint disable-line rule:truthy | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release-version: | |
name: Release new version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: pip install -r dev-requirements.txt | |
- name: Verify version match | |
run: python setup.py verify | |
- name: Initialize .pypirc | |
run: | | |
echo -e "[pypi]" >> ~/.pypirc | |
echo -e "username = __token__" >> ~/.pypirc | |
echo -e "password = ${{ secrets.PYPI_DBT_FABRIC_SPARK }}" >> ~/.pypirc | |
- name: Build and publish package | |
run: | | |
python setup.py sdist bdist_wheel | |
twine upload dist/* |