File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ publish :
9+ name : Build package and publish to PyPI
10+ runs-on : ubuntu-latest
11+ defaults :
12+ run :
13+ shell : bash
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+
18+ - name : Set up Python 3.10
19+ uses : actions/setup-python@v2
20+ with :
21+ python-version : " 3.10"
22+
23+ - name : Setup poetry
24+ 25+ with :
26+ poetry-version : " 1.1.12"
27+
28+ - name : Authenticate poetry
29+ run : poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
30+
31+ - name : Build package
32+ run : poetry build
33+
34+ - name : Check that tag matches version
35+ id : check_files
36+ uses : andstor/file-existence-action@v1
37+ with :
38+ files : " dist/blueskyapi-${{ github.ref_name }}.tar.gz"
39+
40+ - name : Publish package
41+ run : poetry publish
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " blueskyapi"
3- version = " 0.1.0 "
3+ version = " 0.1.0a2 "
44description = " Client for blueskyapi.io"
55authors = [
" blueskyapi.io <[email protected] >" ]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments