-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (30 loc) · 917 Bytes
/
release.yml
File metadata and controls
35 lines (30 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Release and Publish to PyPi
# Only when PR are merged to MASTER
on:
pull_request:
branches:
- master
types: [closed]
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: "Install Poetry"
run:
curl -sSL https://install.python-poetry.org | python -
- name: "Installs the packages from pyproject.toml"
run:
poetry install
- name: "Bump version, push to Git and release to Github"
run: |
git config --local user.email "service@saagie.com"
git config --local user.name "Team Service"
poetry run semantic-release publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}