Skip to content

Commit 9e81cd1

Browse files
committed
ci: add publish workflow
1 parent 32239ce commit 9e81cd1

4 files changed

Lines changed: 46 additions & 21 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0
12+
- uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.11"
15+
- uses: abatilo/actions-poetry@v2
16+
with:
17+
poetry-version: "1.2.2"
18+
- run: poetry self add "poetry-dynamic-versioning[plugin]"
19+
- run: poetry config virtualenvs.create false
20+
- run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
21+
- run: poetry build
22+
- run: poetry publish

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ This project is maintained with [Poetry](https://python-poetry.org). If you
5959
don't have Poetry yet, you can install it using the [installation
6060
instructions](https://python-poetry.org/docs/#installation).
6161

62-
Install the project's dependencies:
62+
Install the project's dependencies including extras:
6363

6464
```bash
65-
poetry install
65+
poetry install -E pygments
6666
```
6767

6868
#### Code Standards

poetry.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["poetry-core"]
3-
build-backend = "poetry.core.masonry.api"
2+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
3+
build-backend = "poetry_dynamic_versioning.backend"
44

55
[tool.poetry]
66
name = "catppuccin"
7-
version = "1.0.0"
7+
version = "0.0.0"
88
description = "🐍 Soothing pastel theme for Python."
99
authors = ["backwardspy <backwardspy@gmail.com>"]
1010
readme = "README.md"
@@ -32,6 +32,9 @@ pytest-cov = "^4.0.0"
3232
types-setuptools = "^65.5.0.3"
3333
types-pygments = "^2.13.1.1"
3434

35+
[tool.poetry-dynamic-versioning]
36+
enable = true
37+
3538
[tool.pylint.messages_control]
3639
disable = [
3740
"useless-import-alias", # pyright compatibility

0 commit comments

Comments
 (0)