Skip to content

Commit

Permalink
set up core publish
Browse files Browse the repository at this point in the history
  • Loading branch information
nebfield committed Mar 22, 2024
1 parent afa2fc0 commit 3351d26
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
publish:
name: build and publish corelib package
name: build and publish core package
runs-on: ubuntu-latest
environment: release
permissions:
Expand All @@ -35,20 +35,15 @@ jobs:
- name: Python Poetry Action
uses: abatilo/[email protected]

- name: Set up test pypi repository
run: |
poetry config repositories.test-pypi https://test.pypi.org/legacy/
- name: Build package
run: poetry build --no-interaction
working-directory: ${{inputs.package-directory}}

- name: Publish package distributions to TestPyPI
- name: Publish package distributions
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: ${{inputs.package-directory}}/dist
skip-existing: true
skip-existing: false

- name: Read package version
run: |
Expand Down

0 comments on commit 3351d26

Please sign in to comment.