Skip to content

Skipping package verification for beta release #2

Skipping package verification for beta release

Skipping package verification for beta release #2

Workflow file for this run

# **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: 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/*