Skip to content

Commit

Permalink
Build only for conda
Browse files Browse the repository at this point in the history
Conda Build only for conda.
  • Loading branch information
szlaura committed Nov 20, 2024
1 parent 22c6101 commit d9761cc
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,6 @@ on:
types: [published]

jobs:
pypi-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Extract version from tag and update files
run: |
set -e
sed -i "s:9999:${VERSION//*v/}:" setup.py conda/meta.yaml
echo "Version set successfully in setup.py and conda/meta.yaml"
env:
VERSION: ${{ github.ref }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install PyPI dependencies
run: |
set -e
python -m pip install --upgrade pip setuptools wheel twine
- name: Build and publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
set -e
python setup.py sdist bdist_wheel
twine upload dist/*

conda-publish:
runs-on: ubuntu-latest
Expand All @@ -62,7 +30,6 @@ jobs:
conda install -y anaconda-client conda-build conda-verify conda-libmamba-solver
conda config --set solver libmamba
conda config --set channel_priority flexible
conda config --set anaconda_upload yes
- name: Build Conda package
run: |
Expand Down

0 comments on commit d9761cc

Please sign in to comment.