Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
srwi committed Feb 1, 2024
1 parent b057b68 commit 96972c5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish to PyPi

permissions:
actions: write

on:
push:
tags:
- '*'

jobs:
pypi-release:
name: PyPi Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
cache: poetry
- name: Install dependencies and build
run: |
poetry install
poetry build
- name: Publish to PyPi
id: pypi_publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Simulate the look of hand-signed and scanned documents. MockSign is a simple too
Use pip to install MockSign with

```bash
pip install git+https://github.com/srwi/MockSign
pip install mocksign
```

## Usage
Expand Down
Empty file removed src/__init__.py
Empty file.

0 comments on commit 96972c5

Please sign in to comment.