Skip to content

Commit

Permalink
Essayer publicationn
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Nov 15, 2024
1 parent f7a6bf1 commit b15eb30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@ on:
- '.vscode/**'

concurrency:
group: ci-${{ github.ref }}
group: ic-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
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
25 changes: 4 additions & 21 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b15eb30

Please sign in to comment.