File tree Expand file tree Collapse file tree 4 files changed +39
-58
lines changed Expand file tree Collapse file tree 4 files changed +39
-58
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to PyPI
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - created
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Dump GitHub context
13
+ env :
14
+ GITHUB_CONTEXT : ${{ toJson(github) }}
15
+ run : echo "$GITHUB_CONTEXT"
16
+ - uses : actions/checkout@v2
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : ' 3.7'
21
+ - uses : actions/cache@v2
22
+ id : cache
23
+ with :
24
+ path : ${{ env.pythonLocation }}
25
+ key : ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-publish
26
+ - name : Install poetry
27
+ if : steps.cache.outputs.cache-hit != 'true'
28
+ run : pip install poetry
29
+ - name : Install Dependencies
30
+ if : steps.cache.outputs.cache-hit != 'true'
31
+ run : poetry install
32
+ - name : Publish
33
+ env :
34
+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
35
+ run : poetry publish --build
36
+ - name : Dump GitHub context
37
+ env :
38
+ GITHUB_CONTEXT : ${{ toJson(github) }}
39
+ run : echo "$GITHUB_CONTEXT"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments