Skip to content

Commit

Permalink
update pypi publish
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor authored and vitor committed Jan 3, 2024
1 parent 20af2e6 commit c357a12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ on:
- '*'

jobs:
build:
build-n-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Extract tag name
shell: bash
run: echo "TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -24,7 +29,3 @@ jobs:
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# repository_url: https://upload.pypi.org/legacy/
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
Setup.py for FastETL Airflow provider package.
"""

import os
from setuptools import find_packages, setup

with open("README.md", "r") as fh:
long_description = fh.read()

__version__ = "0.0.30"
__version__ = os.environ["TAG_NAME"]

"""Perform the package apache-airflow-providers-fastetl setup."""
setup(
Expand Down

0 comments on commit c357a12

Please sign in to comment.