File tree Expand file tree Collapse file tree 1 file changed +31
-6
lines changed Expand file tree Collapse file tree 1 file changed +31
-6
lines changed Original file line number Diff line number Diff line change 44 release :
55 types : [created]
66
7- jobs :
7+ jobs :
8+ release-core :
9+ runs-on : ubuntu-latest
10+ defaults :
11+ run :
12+ working-directory : scaleway-core
13+ steps :
14+ - uses : actions/checkout@v3
15+ - name : Set up Python
16+ uses : actions/setup-python@v4
17+ with :
18+ python-version : 3.8
19+ - name : Install poetry
20+ run : |
21+ pip install poetry
22+ poetry --version
23+ - name : Update lock file
24+ run : poetry lock
25+ - name : Install dependencies and library
26+ run : poetry install
27+ - name : Set package version
28+ run : poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3)
29+ - name : Build package
30+ run : poetry build
31+ - name : Publish package
32+ run : poetry publish
33+ env :
34+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
35+
836 release :
937 runs-on : ubuntu-latest
1038 strategy :
1139 matrix :
1240 lib :
13- - scaleway-core
1441 - scaleway
1542 - scaleway-async
1643 defaults :
2653 run : |
2754 pip install poetry
2855 poetry --version
29- - name : Set scaleway-core version
30- run : poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3)
31- working-directory : scaleway-core
32- if : matrix.lib != 'scaleway-core'
56+ - name : Set scaleway-core version in the package
57+ run : poetry add scaleway-core@$(echo "${{ github.ref }}" | cut -d "/" -f 3)
3358 - name : Update lock file
3459 run : poetry lock
3560 - name : Install dependencies and library
You can’t perform that action at this time.
0 commit comments