Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cbf598

Browse files
Create package publish workflow
1 parent28ad7af commit8cbf598

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
name:Upload Python Package
4+
on:
5+
release:
6+
types:[created]
7+
jobs:
8+
deploy:
9+
name:Deploy
10+
runs-on:ubuntu-latest
11+
steps:
12+
-name:Checkout code
13+
uses:actions/checkout@v2
14+
-name:Set up Python
15+
uses:actions/setup-python@v2
16+
with:
17+
python-version:'3.9'
18+
-name:Install dependencies
19+
run:|
20+
python -m pip install --upgrade pip
21+
pip install setuptools wheel twine
22+
-name:Build and publish
23+
env:
24+
TWINE_USERNAME:${{ secrets.PYPI_USERNAME }}
25+
TWINE_PASSWORD:${{ secrets.PYPI_PASSWORD }}
26+
run:|
27+
python setup.py sdist bdist_wheel
28+
twine upload dist/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp