From b15eb30ed234e4bd448e2cb78315537f3b491b5a Mon Sep 17 00:00:00 2001 From: julienmalard Date: Fri, 15 Nov 2024 10:58:24 +0530 Subject: [PATCH] Essayer publicationn --- .github/workflows/ic.yml | 5 +---- .github/workflows/pypi.yml | 25 ++++--------------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 92f4438..92761d2 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -32,7 +32,7 @@ on: - '.vscode/**' concurrency: - group: ci-${{ github.ref }} + group: ic-${{ github.ref }} cancel-in-progress: true jobs: @@ -40,9 +40,6 @@ jobs: uses: ./.github/workflows/tests.yml pypi: permissions: - contents: write id-token: write # Allows this job to create releases - with: - dry-run: ${{ github.ref_type != 'tag' }} needs: [ tests ] uses: ./.github/workflows/pypi.yml \ No newline at end of file diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index f76f6ad..0f03336 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -1,41 +1,24 @@ name: Tests on: - workflow_call: - inputs: - dry-run: - description: 'Compiles the app but not upload artifacts to distribution server' - default: false - required: false - type: boolean - -concurrency: - group: release-${{ github.ref }} - cancel-in-progress: true - -defaults: - run: - shell: 'bash' + release: + types: [ published ] jobs: - pypi: + publier-pypi: runs-on: ubuntu-latest permissions: - # This permission is needed for private repositories. - contents: read # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - uses: actions/checkout@v4 - name: Setup PDM uses: pdm-project/setup-pdm@v4 with: - python-version: "3.11" cache: true - name: Publier sur PyPI - if: ${{ !inputs.dry-run }} run: pdm publish