From 1d809dc9d61dc97dcd2c5b94fc6466fdd453bb73 Mon Sep 17 00:00:00 2001 From: Marcin Rudolf Date: Sat, 1 Feb 2025 18:19:04 +0100 Subject: [PATCH] enables publish --- .github/workflows/release.yml | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5b00647..43f7f020 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,6 +126,7 @@ jobs: environment: release permissions: id-token: write + contents: write steps: - name: Checkout code uses: actions/checkout@v2 @@ -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 @@ -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