Skip to content

Commit

Permalink
ci: prepare for release-please workflow (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardspy authored Jun 18, 2024
1 parent 580dabc commit aa9d2c1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: abatilo/actions-poetry@v3
- run: poetry self add "poetry-dynamic-versioning[plugin]"
- run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- run: poetry publish --build
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
release-type: python
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "catppuccin"
version = "0.0.0"
version = "2.2.0"
description = "🐍 Soothing pastel theme for Python."
authors = ["backwardspy <backwardspy@pigeon.life>"]
readme = "README.md"
Expand Down Expand Up @@ -36,9 +36,6 @@ ruff = "^0.4.0"
types-pygments = "^2.17.0.20240106"
types-colorama = "^0.4.15.20240205"

[tool.poetry-dynamic-versioning]
enable = true

[tool.ruff.lint]
select = ["ALL"]
ignore = [
Expand Down

0 comments on commit aa9d2c1

Please sign in to comment.