Skip to content

Commit

Permalink
Different token for original and alias
Browse files Browse the repository at this point in the history
As we upload two projects to PyPI (kivy-garden.mapview & mapview)
we need two different tokens, hence two different jobs.
Testing it we got a:
```
HTTPError: 400 Client Error: File already exists.
See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy/
```
For both jobs, which means the credentials are working.
https://github.com/kivy-garden/mapview/runs/600987339
  • Loading branch information
AndreMiras committed Apr 20, 2020
1 parent cddde48 commit e1a055e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PyPI release
on: [push]

jobs:
pypi:
pypi_kivy_garden_mapview:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
Expand All @@ -16,10 +16,30 @@ jobs:
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.1.0
with:
user: __token__
password: ${{ secrets.pypi_password_kivy_garden_mapview }}

pypi_mapview:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --user --upgrade setuptools wheel
- name: Build
run: |
python setup_meta.py sdist bdist_wheel
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.1.0
with:
user: __token__
password: ${{ secrets.pypi_password }}
password: ${{ secrets.pypi_password_mapview }}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Change Log


## [Unreleased]

- PyPI auto-deployment

## [1.0.3]

- Genral code linting/cleaning
- Increase coverage testing from 14% to 35%
- Fix `Downloader` now checks for HTTP status code, refs #6

## [1.0.2]
Expand Down

0 comments on commit e1a055e

Please sign in to comment.