mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
setup action to build/publish on PyPI
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
name: Publish Docker image
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'devel'
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
15
.github/workflows/pypi.yml
vendored
Normal file
15
.github/workflows/pypi.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: PyPI
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
pypi:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: pip install -U poetry twine wheel
|
||||
- run: poetry build
|
||||
- run: twine upload --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
|
||||
Reference in New Issue
Block a user