Skip to content

Commit 539ee69

Browse files
committed
fix automatic release
1 parent ec9616c commit 539ee69

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/release.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@ jobs:
1616
title: TMDbAPIs ${{ github.event.ref }}
1717
repo_token: ${{ secrets.PAT }}
1818
prerelease: false
19-
- name: Publish a Python distribution to PyPI
20-
uses: pypa/gh-action-pypi-publish@release/v1
19+
- uses: actions/checkout@v2
20+
- name: Set up Python
21+
uses: actions/setup-python@v2
2122
with:
22-
user: __token__
23-
password: ${{ secrets.PYPI_API_TOKEN }}
23+
python-version: '3.x'
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install setuptools wheel twine
28+
- name: Build and publish
29+
env:
30+
TWINE_USERNAME: __token__
31+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
32+
run: |
33+
python setup.py sdist bdist_wheel
34+
twine upload dist/*

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.3
1+
0.1.4

0 commit comments

Comments
 (0)