Parcourir la source

fix: pypi oidc

Byaidu il y a 1 an
Parent
commit
4f45be5952
2 fichiers modifiés avec 4 ajouts et 6 suppressions
  1. 1 1
      .github/workflows/docker-publish.yml
  2. 3 5
      .github/workflows/python-publish.yml

+ 1 - 1
.github/workflows/docker-publish.yml

@@ -1,4 +1,4 @@
-name: Docker
+name: Upload Docker Image
 
 # This workflow uses actions that are not certified by GitHub.
 # They are provided by a third-party and are governed by

+ 3 - 5
.github/workflows/python-publish.yml

@@ -9,8 +9,9 @@
 name: Upload Python Package
 
 on:
-  release:
-    types: [published]
+  push:
+    # Publish semver tags as releases.
+    tags: [ 'v*.*.*' ]
 
 permissions:
   contents: read
@@ -34,6 +35,3 @@ jobs:
       run: python -m build
     - name: Publish package
       uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
-      with:
-        user: __token__
-        password: ${{ secrets.PYPI_API_TOKEN }}