-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1622 from ocefpaf/pypi
rename to avoid docs confusion and update
- Loading branch information
Showing
2 changed files
with
10 additions
and
62 deletions.
There are no files selected for viewing
29 changes: 10 additions & 19 deletions
29
.github/workflows/publish.yml → .github/workflows/pypi.yml
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 |
---|---|---|
@@ -1,54 +1,45 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- published | ||
on: ["push", "pull_request"] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
packages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Get tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
shell: bash | ||
|
||
|
||
- name: Install build tools | ||
run: | | ||
python -m pip install --upgrade pip wheel build twine | ||
shell: bash | ||
|
||
- name: Build binary wheel and sdist | ||
run: python -m build --sdist --wheel . --outdir dist | ||
|
||
- name: CheckFiles | ||
run: | | ||
ls dist | ||
shell: bash | ||
- name: Test wheels | ||
run: | | ||
cd dist && python -m pip install folium*.whl | ||
python -m twine check * | ||
shell: bash | ||
- name: Publish a Python distribution to PyPI | ||
if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }} | ||
uses: pypa/gh-action-pypi-publish@master | ||
if: ${{ github.event_name == 'release' }} | ||
uses: pypa/gh-action-pypi-publish@v1.5.1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
This file was deleted.
Oops, something went wrong.