Skip to content

Commit

Permalink
chore: Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pprzetacznik committed Dec 25, 2023
1 parent 8cd8ae3 commit bdb76cd
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ksef-utils Release

on:
push:
tags:
- 'v*'

jobs:
release:
name: Documentation
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.11']
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Deploy package
run: |
pip install twine wheel
python setup.py sdist bdist_wheel
twine upload dist/* --skip-existing
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this release:
- ${{ github.event.head_commit.message }}
draft: true
prerelease: false
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
recursive-include resources *
recursive-include resources *.yaml
include templates/InitSession.xml
include templates/invoice_example.xml
include MANIFEST.in
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name = ksef-utils
version = file:VERSION
author = Piotr Przetacznik
author_email = "piotr.przetacznik+ksef@gmail.com",
long_description = file:README.md
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/pprzetacznik/ksef-utils
keywords =
invoices
Expand Down

0 comments on commit bdb76cd

Please sign in to comment.