Skip to content

Commit 3d4e9a5

Browse files
committed
ci: update publish workflow
1 parent 12f697f commit 3d4e9a5

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Upload Python Package
1+
name: upload Python package
102

113
on:
124
release:
@@ -23,14 +15,12 @@ jobs:
2315
uses: actions/setup-python@v2
2416
with:
2517
python-version: '3.x'
26-
- name: Install dependencies
18+
- name: install dependencies
2719
run: |
2820
python -m pip install --upgrade pip
29-
pip install build
30-
- name: Build package
31-
run: python -m build
32-
#- name: Publish package
33-
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34-
# with:
35-
# user: __token__
36-
# password: ${{ secrets.PYPI_API_TOKEN }}
21+
make install
22+
- name: publish to pypi
23+
uses: pypa/gh-action-pypi-publish@master
24+
with:
25+
skip_existing: true
26+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)