Skip to content

Commit

Permalink
Merge pull request #3 from dlt-hub/release
Browse files Browse the repository at this point in the history
adds none any wheel
  • Loading branch information
rudolfix authored Jan 20, 2025
2 parents ce302d6 + 0ed919f commit 6e39c74
Show file tree
Hide file tree
Showing 3 changed files with 344 additions and 58 deletions.
107 changes: 54 additions & 53 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,30 @@ jobs:
include:
- os: ubuntu
platform: linux
- os: windows
ls: dir
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
- os: windows
ls: dir
target: aarch64
interpreter: 3.11 3.12 3.13
- os: macos
target: aarch64
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
- os: ubuntu
platform: linux
target: aarch64
# mimalloc not supported on manylinux2014 cross-compile container
extra-build-args: --no-default-features
# musllinux
- os: ubuntu
platform: linux
target: x86_64
manylinux: musllinux_1_1
- os: ubuntu
platform: linux
target: aarch64
manylinux: musllinux_1_1
- os: ubuntu
platform: linux
target: ppc64le
Expand All @@ -36,44 +55,6 @@ jobs:
# mimalloc not supported on manylinux2014 cross-compile container
extra-build-args: --no-default-features

# musllinux
- os: ubuntu
platform: linux
target: x86_64
manylinux: musllinux_1_1
- os: ubuntu
platform: linux
target: aarch64
manylinux: musllinux_1_1

# - os: windows
# ls: dir
# interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
# - os: windows
# ls: dir
# target: aarch64
# interpreter: 3.11 3.12

- os: windows
target: x86_64
interpreter: pypy3.9 pypy3.10
- os: windows
target: i686
python-architecture: x86
interpreter: 3.9 3.10 3.11 3.12 3.13
- os: windows
target: aarch64
interpreter: 3.11 3.12 3.13


- os: macos
target: x86_64
- os: macos
target: aarch64
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10



runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -94,7 +75,7 @@ jobs:
rust-toolchain: stable
docker-options: -e CI

- run: ${{ matrix.ls || 'ls -l' }} dist/
- run: ${{ matrix.ls || 'ls -lh' }} dist/

- uses: actions/upload-artifact@v3
with:
Expand All @@ -116,9 +97,27 @@ jobs:
name: dist
path: dist

build_none:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5
- name: Install dependencies
run: poetry install --only main --only test --only typing --only build
- name: Run poetry build
run: poetry build
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: dist
path: dist


Release:
needs: [ build, build_sdist ]
needs: [ build, build_sdist, build_none ]
if: success() && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

Expand Down Expand Up @@ -149,16 +148,18 @@ 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 to PyPI
# env:
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
# run: |
# poetry publish
- 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 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
Loading

0 comments on commit 6e39c74

Please sign in to comment.