mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-30 10:34:28 +02:00
FEAT: add PYPI python package release workflow on tag (#1628)
* add pypi worflow, pyproject types, package metadata, ignore python package build, docker build fails if poetry uses readme for python package * add pypi to release
This commit is contained in:
@ -9,6 +9,7 @@ lnbits/static/bundle.js
|
|||||||
lnbits/static/bundle.css
|
lnbits/static/bundle.css
|
||||||
|
|
||||||
*.md
|
*.md
|
||||||
|
!README.md
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
.env
|
.env
|
||||||
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -10,6 +10,7 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -29,3 +30,12 @@ jobs:
|
|||||||
secrets:
|
secrets:
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
pypi:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build and publish to pypi
|
||||||
|
uses: JRubics/poetry-publish@v1.15
|
||||||
|
with:
|
||||||
|
pypi_token: ${{ secrets.PYPI_API_KEY }}
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -51,3 +51,6 @@ lnbits-backup.zip
|
|||||||
# Ignore extensions (post installable extension PR)
|
# Ignore extensions (post installable extension PR)
|
||||||
extensions
|
extensions
|
||||||
upgrades/
|
upgrades/
|
||||||
|
|
||||||
|
# builded python package
|
||||||
|
dist
|
||||||
|
@ -3,6 +3,13 @@ name = "lnbits"
|
|||||||
version = "0.12.6"
|
version = "0.12.6"
|
||||||
description = "LNbits, free and open-source Lightning wallet and accounts system."
|
description = "LNbits, free and open-source Lightning wallet and accounts system."
|
||||||
authors = ["Alan Bits <alan@lnbits.com>"]
|
authors = ["Alan Bits <alan@lnbits.com>"]
|
||||||
|
readme = "README.md"
|
||||||
|
repository = "https://github.com/lnbits/lnbits"
|
||||||
|
homepage = "https://lnbits.com"
|
||||||
|
packages = [
|
||||||
|
{include = "lnbits"},
|
||||||
|
{include = "lnbits/py.typed"},
|
||||||
|
]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10 | ^3.9"
|
python = "^3.10 | ^3.9"
|
||||||
|
Reference in New Issue
Block a user