Skip to content

Commit e5796b9

Browse files
committed
Buat workflow GitHub Actions untuk rilis ke PyPI
1 parent 95d91ac commit e5796b9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Set up Python 3.8
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: 3.8
15+
- name: Build package
16+
run: |
17+
pip install --upgrade setuptools wheel
18+
python setup.py sdist bdist_wheel
19+
- name: Publish package to PyPI
20+
if: startsWith(github.event.ref, 'refs/tags')
21+
uses: pypa/gh-action-pypi-publish@master
22+
with:
23+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)