File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ release :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ lib :
13+ - scaleway-core
14+ - scaleway
15+ - scaleway-async
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : 3.8
22+ - name : Install poetry
23+ working-directory : ${{ matrix.lib }}
24+ run : |
25+ pip install poetry
26+ poetry --version
27+ - name : Install dependencies and library
28+ working-directory : ${{ matrix.lib }}
29+ run : poetry install
30+ - name : Set package version
31+ working-directory : ${{ matrix.lib }}
32+ run : poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3)
33+ - name : Build package
34+ working-directory : ${{ matrix.lib }}
35+ run : poetry build
36+ - name : Publish package
37+ working-directory : ${{ matrix.lib }}
38+ run : poetry publish --build
39+ env :
40+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments