Skip to content

Commit 826bfd0

Browse files
author
youngfreefjs@gmail.com
committed
feat: set function size, filesize, compress
1 parent 9efc500 commit 826bfd0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflows 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+
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
4+
name: Publish
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
build-publish-to-pypi:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: "3.7"
19+
- name: Install python dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
27+
run: |
28+
python setup.py sdist
29+
twine upload dist/*

0 commit comments

Comments
 (0)