Skip to content

Commit d61505a

Browse files
committed
[github action] pypi publisher
1 parent f540a11 commit d61505a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish metaflow-card-notebook to pypi (Manual)
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
deploy:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
id-token: write
9+
contents: read
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python 3.x
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.11'
16+
- name: Install Python 3.x dependencies
17+
run: |
18+
python3 -m pip install --upgrade pip==22.3.1
19+
pip3 install setuptools==65.5.0 wheel==0.38.4 twine==4.0.2
20+
- name: Build package
21+
run: |
22+
python3 setup.py sdist bdist_wheel --universal
23+
- name: Publish package
24+
uses: pypa/gh-action-pypi-publish@release/v1
25+
with:
26+
packages-dir: ./dist

0 commit comments

Comments
 (0)