We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1683905 commit 9a7b215Copy full SHA for 9a7b215
.github/workflows/CD.yml
@@ -0,0 +1,42 @@
1
+name: CD
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - master
8
+ release:
9
+ types:
10
+ - published
11
12
+jobs:
13
+ dist:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v1
17
18
+ - name: Build wheel and SDist
19
+ run: pipx run build
20
21
+ - uses: actions/upload-artifact@v2
22
+ with:
23
+ path: dist/*
24
25
+ - name: Check metadata
26
+ run: pipx run twine check dist/*
27
28
29
+ publish:
30
+ needs: [dist]
31
32
+ if: github.event_name == 'release' && github.event.action == 'published'
33
34
35
+ - uses: actions/download-artifact@v2
36
37
+ name: artifact
38
+ path: dist
39
40
+ - uses: pypa/[email protected]
41
42
+ password: ${{ secrets.pypi_password }}
0 commit comments