You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/python-publish.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,27 @@
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
1
name: Upload Python Package
5
2
6
3
on:
7
4
release:
8
5
types: [created]
9
6
10
7
jobs:
11
-
deploy:
12
8
9
+
deploy:
13
10
runs-on: ubuntu-latest
14
-
15
11
steps:
16
-
- uses: actions/checkout@v2
12
+
- name: Check out code
13
+
uses: actions/checkout@v3
17
14
- name: Set up Python
18
-
uses: actions/setup-python@v2
15
+
uses: actions/setup-python@v4
19
16
with:
20
17
python-version: '3.x'
21
18
- name: Install dependencies
22
19
run: |
23
20
python -m pip install --upgrade pip
24
21
pip install setuptools wheel twine
22
+
- name: Update version number
23
+
run: |
24
+
sed -i 's/<PACKAGE_VERSION>/${{ github.ref_name }}/' setup.py
0 commit comments