This repository was archived by the owner on Nov 17, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +41
-7
lines changed Expand file tree Collapse file tree 4 files changed +41
-7
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ release :
5+ types : [ created ]
6+
7+ env :
8+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
9+
10+ jobs :
11+ test :
12+ name : Publish to PyPI
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v2
17+ - name : Set up Python
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : 3.8
21+ - name : Install test dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install poetry==1.1.3
25+ - name : Install Dependencies
26+ run : poetry install
27+ - name : Publish to PyPI
28+ run : |
29+ poetry config pypi-token.pypi ${{ PYPI_TOKEN }}
30+ bash scripts/publish.sh
Original file line number Diff line number Diff line change 1313
1414test :
1515 tox
16-
17- release : clean-build
18- poetry publish --build
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ To run lint, use
2323 make lint
2424
2525## Release Updated Version
26- First, make sure you have been added as a collaborator [ here] ( https://pypi.org/manage/project/python-elemental/collaboration/ ) .
27- Manually increase the version [ here] ( https://github.com/cbsinteractive/elemental/blob/master/pyproject.toml#L3 ) and run
28-
29- make release
26+ Use the Github UI to [ create a new release] ( https://github.com/cbsinteractive/elemental/releases/new ) , the tag needs
27+ to follow the semver format ` 0.0.0 ` . After the new release is created, a Github workflow will build and publish the
28+ new python package to PyPI automatically.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+ set -x
5+
6+ version=$( git describe --tags --abbrev=0)
7+ poetry version " ${version} "
8+ poetry publish --build
You can’t perform that action at this time.
0 commit comments