Skip to content

Commit

Permalink
feat(workflows): Add plugins publishing workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel A. Cabrera Minagorri <devgorri@gmail.com>
  • Loading branch information
miguelaeh committed Sep 3, 2023
1 parent 41e7ea2 commit d74d2ad
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-plugins-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish plugins to Pypi
on:
push:
tags:
- "plugins-v*.*.*"
jobs:
publish-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10.12'
- name: Get Poetry
uses: abatilo/actions-poetry@v2.1.6
with:
poetry-version: '1.5.1'
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
cd plugins
poetry config repositories.pypi https://upload.pypi.org/legacy/
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --repository pypi --build

0 comments on commit d74d2ad

Please sign in to comment.