Skip to content

Commit

Permalink
Remove package building on PR's, remove commented conda env section, …
Browse files Browse the repository at this point in the history
…add package publish section
  • Loading branch information
ayushdg committed Oct 18, 2022
1 parent 7ddcc39 commit d97e3c2
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Upload Python package
on:
release:
types: [created]
pull_request: # for testing

# for testing
concurrency:
Expand All @@ -25,16 +24,6 @@ jobs:
python: ["8", "9", "10"] # 3.x
steps:
- uses: actions/checkout@v3
# - name: Set up Python
# uses: conda-incubator/setup-miniconda@v2
# with:
# miniforge-variant: Mambaforge
# use-mamba: true
# python-version: 3.${{ matrix.python }}
# channel-priority: strict
# channels: conda-forge,nodefaults
# activate-environment: dask-sql
# environment-file: ${{ env.CONDA_FILE }}
- name: Install dependencies
run: |
pip install setuptools setuptools-rust wheel twine
Expand Down Expand Up @@ -80,3 +69,8 @@ jobs:
with:
name: wheels for py3.${{ matrix.python }} on ${{ matrix.os }}
path: dist/*
- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

0 comments on commit d97e3c2

Please sign in to comment.