Skip to content

Commit

Permalink
enables publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Feb 1, 2025
1 parent 0140506 commit 1d809dc
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ jobs:
environment: release
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -137,10 +138,6 @@ jobs:
path: dist
merge-multiple: true

# - name: Install Poetry
# run: |
# curl -fsS https://install.python-poetry.org | python - --version 1.8.5 -y

- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

Expand All @@ -154,20 +151,12 @@ jobs:
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| echo ::set-output name=prerelease::true
# - name: Create Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "dist/*"
# token: ${{ secrets.GITHUB_TOKEN }}
# draft: false
# prerelease: steps.check-version.outputs.prerelease == 'true'
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

# - name: Publish to PyPI
# shell: bash
# env:
# DLT_PYPI_PASSWORD: ${{ secrets.DLT_PYPI_PASSWORD }}
# DLT_PYPI_USERNAME: ${{ secrets.DLT_PYPI_USERNAME }}
# run: |
# poetry publish --repository dlt-pypi --username $DLT_PYPI_USERNAME --password $DLT_PYPI_PASSWORD
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 1d809dc

Please sign in to comment.