From 448ab21c5e88b2779af56e2b0678904bebf4e80e Mon Sep 17 00:00:00 2001 From: Joel Lefkowitz Date: Sun, 14 Apr 2024 07:03:05 +0100 Subject: [PATCH] Add publish workflow --- .github/workflows/publish.yml | 6 ++++-- .github/workflows/review.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be8a912..772b89b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,8 +15,10 @@ jobs: - name: Install dependencies uses: ./.github/actions/install - - name: Build + - name: Build the package run: python -m build - - name: Publish + - name: Publish the package uses: pypa/gh-action-pypi-publish@release/v1 + with: + token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 2d577dc..ef794f7 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -22,4 +22,4 @@ jobs: uses: codacy/codacy-coverage-reporter-action@v1 with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: ./coverage.lcov + coverage-reports: .coverage