Skip to content

Commit

Permalink
Merge pull request #1622 from ocefpaf/pypi
Browse files Browse the repository at this point in the history
rename to avoid docs confusion and update
  • Loading branch information
ocefpaf authored Oct 7, 2022
2 parents c04768a + 3997842 commit 849fdb6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 62 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/publish.yml → .github/workflows/pypi.yml
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 }}
43 changes: 0 additions & 43 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 849fdb6

Please sign in to comment.