Skip to content

Commit 21c0cab

Browse files
authored
Create release.yaml
1 parent f32704b commit 21c0cab

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
name: Release
6+
jobs:
7+
pypi:
8+
name: PyPI Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Remove docs before release
13+
run: rm -rf docs/
14+
- name: PyPI Upload
15+
uses: FeatureLabs/gh-action-pypi-upload@v2
16+
env:
17+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
18+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
19+
TEST_PYPI_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
20+
TEST_PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}

0 commit comments

Comments
 (0)