Skip to content

Commit 105ef8c

Browse files
committed
feat: enable releasing CI
1 parent f24259e commit 105ef8c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 }}

0 commit comments

Comments
 (0)