Skip to content

Commit

Permalink
try changes to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Feb 17, 2024
1 parent e4ade87 commit bd79ee2
Showing 1 changed file with 32 additions and 19 deletions.
51 changes: 32 additions & 19 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Publish to PyPi

on:
release:
types: [published]
push:

workflow_dispatch:

Expand All @@ -12,6 +11,7 @@ jobs:
environment:
name: PyPi
url: https://pypi.org/p/airbyte
if: startsWith(github.ref, 'refs/tags/')
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # Needed to upload artifacts to the release
Expand All @@ -20,24 +20,37 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: "1.7.1"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'

- name: Install poetry-dynamic-versioning
run: pip install poetry-dynamic-versioning
- name: Build Python package
uses: hynek/build-and-inspect-python-package@v2

# - name: Set up Poetry
# uses: Gr1N/setup-poetry@v8
# with:
# poetry-version: "1.7.1"
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# cache: 'poetry'

- name: Install dependencies
run: poetry install
# - name: Install poetry-dynamic-versioning
# run: pip install poetry-dynamic-versioning

- name: Build package
run: poetry build
# - name: Install dependencies
# run: poetry install

# - name: Build package
# run: poetry build

- name: Upload wheel to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.8.11

0 comments on commit bd79ee2

Please sign in to comment.