Skip to content

Commit aa0290a

Browse files
committed
update GH actions
1 parent 223cff9 commit aa0290a

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
name: release
22

3-
on: push
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
publish-pypi:
79
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/cuenca
13+
permissions:
14+
id-token: write
815
steps:
9-
- uses: actions/checkout@v2.4.0
16+
- uses: actions/checkout@master
1017
- name: Set up Python 3.8
1118
uses: actions/setup-python@v2.3.1
1219
with:
@@ -15,9 +22,7 @@ jobs:
1522
run: pip install -qU setuptools wheel twine
1623
- name: Generating distribution archives
1724
run: python setup.py sdist bdist_wheel
18-
- name: Publish distribution 📦 to PyPI
19-
if: startsWith(github.event.ref, 'refs/tags')
20-
uses: pypa/gh-action-pypi-publish@master
25+
- name: Publish package distributions to PyPI
26+
uses: pypa/gh-action-pypi-publish@release/v1
2127
with:
22-
user: __token__
23-
password: ${{ secrets.pypi_password }}
28+
user: __token__

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.15.10.dev1'
1+
__version__ = '0.15.10.dev2'
22
CLIENT_VERSION = __version__
33
API_VERSION = '2020-03-19'

0 commit comments

Comments
 (0)