diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 623bd5dae..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Upload Python package - -on: - release: - types: [created] - -# Required shell entrypoint to have properly activated conda environments -defaults: - run: - shell: bash -l {0} - -jobs: - deploy: - name: Build and upload Python package - runs-on: ubuntu-latest - if: github.repository == 'dask-contrib/dask-sql' - steps: - - uses: actions/checkout@v2 - - name: Cache local Maven repository - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-v1-jdk11-${{ hashFiles('**/pom.xml') }} - - name: Set up Python - uses: conda-incubator/setup-miniconda@v2 - with: - miniforge-variant: Mambaforge - use-mamba: true - python-version: "3.8" - channel-priority: strict - activate-environment: dask-sql - environment-file: continuous_integration/environment-3.8-jdk11-dev.yaml - - name: Install dependencies - run: | - pip install setuptools wheel twine - which python - pip list - conda list - - name: Build package - run: python setup.py sdist bdist_wheel - - name: Publish package - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload dist/*