-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6e5695
commit 5b0a4e4
Showing
1 changed file
with
8 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' |