Skip to content

Commit

Permalink
Update python-package-conda.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rcervinoucm authored Jun 6, 2024
1 parent b6e5695 commit 5b0a4e4
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,13 @@ jobs:
#anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
#platforms: 'win osx linux'


pypi-publish:
name: Publish release to PyPI
environment:
name: pypi
url: https://pypi.org/project/dl1-data-handler/
permissions:
id-token: write
strategy:
matrix:
os: [ubuntu-22.04]
#pyv: [3.9, '3.10', 3.11, 3.12]
max-parallel: 5
runs-on: ${{ matrix.os }}
condapublish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
#- name: Set up Python ${{ matrix.pyv }}
# run: |
# conda install -y python=${{ matrix.pyv }}
- name: Add conda to system path
run: |
#$CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Build package
run: |
python setup.py sdist bdist_wheel # Could also be python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: publish-to-conda
uses: fcakyon/[email protected]
with:
subdir: 'conda'
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
platforms: 'win osx linux'

0 comments on commit 5b0a4e4

Please sign in to comment.