From 1d0e3a5fdf165e55bdeeec0de2a8e49ddc4d1458 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 14 Jan 2023 18:30:13 +0100 Subject: [PATCH] Add publish workflow --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ .github/workflows/test.yml | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c472114 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5cbe6c4..d665a2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,6 +3,7 @@ name: test on: push: {} pull_request: {} + workflow_call: {} jobs: lint: