Skip to content

Commit

Permalink
Updating workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshah committed Jun 17, 2024
1 parent 08f0585 commit 3e74b77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: publish-to-conda
uses: maxibor/conda-package-publish-action@1.1
uses: maxibor/conda-package-publish-action@master
with:
subdir: 'conda'
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
21 changes: 14 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
poetry lock
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
poetry install
- name: Build package
run: poetry build

- name: Publish package
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_API_TOKEN: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
poetry config pypi-token.pypi ${PYPI_API_TOKEN}
poetry publish

0 comments on commit 3e74b77

Please sign in to comment.