Skip to content

Commit e4b04f7

Browse files
committed
Add release workflow
1 parent 693c53a commit e4b04f7

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ on:
66

77
jobs:
88
lint:
9-
name: Lint
9+
name: 🧹 Lint
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Install poetry
1414
run: pipx install poetry==1.4.2
15-
- name: Set up Python 3.10
15+
- name: Set up Python 3.11
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.10"
18+
python-version: "3.11"
1919
cache: 'poetry'
2020
- name: Install dependencies
2121
run: poetry install --no-interaction
2222
- run: poetry run flake8
2323

2424
test:
25-
name: ${{ matrix.os }} / ${{ matrix.python-version }}
25+
name: 🧪 ${{ matrix.os }} / ${{ matrix.python-version }}
2626
runs-on: ${{ matrix.image }}
2727
strategy:
2828
matrix:

.github/workflows/release.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
release:
4+
types:
5+
- released
6+
7+
jobs:
8+
publish:
9+
name: 📦 Publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Install poetry
14+
run: pipx install poetry==1.4.2
15+
- name: Set up Python 3.11
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.11"
19+
cache: 'poetry'
20+
- name: Publish
21+
env:
22+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
23+
run: |
24+
poetry publish --build

0 commit comments

Comments
 (0)