Skip to content

Commit ecbc8df

Browse files
committed
Add upload-package workflow
1 parent 2cd6814 commit ecbc8df

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Upload package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
test-package:
12+
uses: ./.github/workflows/test-package.yml
13+
14+
upload-package:
15+
needs: test-package
16+
17+
runs-on: ubuntu-latest
18+
env:
19+
INTERPRETER: python
20+
PIP: python -m pip
21+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up Python
26+
uses: actions/setup-python@v3
27+
with:
28+
python-version: '3.x'
29+
- name: Install package builder
30+
run: make install-package-builder
31+
- name: Build package
32+
run: make build-package
33+
- name: Install package uploader
34+
run: make install-package-uploader
35+
- name: Upload package
36+
run: make upload-package

0 commit comments

Comments
 (0)