Add publish workflow

This commit is contained in:
Thor77 2023-01-14 18:30:13 +01:00 committed by Jonas Seydel
parent 51abb87c88
commit 1d0e3a5fdf
2 changed files with 24 additions and 0 deletions

23
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: publish
on:
push:
tags:
- "*"
jobs:
test:
uses: ./.github/workflows/test.yml
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.3'
- name: Publish
run: poetry publish --build

View File

@ -3,6 +3,7 @@ name: test
on: on:
push: {} push: {}
pull_request: {} pull_request: {}
workflow_call: {}
jobs: jobs:
lint: lint: