fix publish workflow
This commit is contained in:
parent
fb3f0c926f
commit
fddd438ac8
2 changed files with 7 additions and 5 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
|
@ -1,6 +1,10 @@
|
|||
name: CI
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
|||
6
.github/workflows/python-publish.yml
vendored
6
.github/workflows/python-publish.yml
vendored
|
|
@ -8,16 +8,14 @@ jobs:
|
|||
create_wheel_and_sdist:
|
||||
name: create_wheel_and_sdist
|
||||
uses: ./.github/workflows/main.yml
|
||||
with:
|
||||
attest-package: "true"
|
||||
|
||||
deploy:
|
||||
depends-on: create_wheel_and_sdist
|
||||
needs: [ create_wheel_and_sdist ]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
environment: pypi
|
||||
permissions:
|
||||
id-token: write. # IMPORTANT: this permission is mandatory for Trusted Publishing
|
||||
id-token: write # IMPORTANT: this permission is mandatory for Trusted Publishing
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue