This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-publish.git


The following commit(s) were added to refs/heads/main by this push:
     new 5abac2d  Add providers workflow to publish packages to Test PyPI (#9)
5abac2d is described below

commit 5abac2dcf02b9fade5346ec82c91e8ddd4e997d1
Author: GPK <[email protected]>
AuthorDate: Fri Dec 20 08:28:36 2024 +0000

    Add providers workflow to publish packages to Test PyPI (#9)
    
    * Add providers workflow to publish packages to Test PyPI
    
    * remove input parameters from test PyPI providers workflow
---
 .github/workflows/airflow-publish.yml              |  2 ++
 .github/workflows/providers-publish.yml            |  2 ++
 .github/workflows/test-pypi-airflow-publish.yml    |  4 +++-
 ...publish.yml => test-pypi-providers-publish.yml} | 28 ++++++++++++----------
 4 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/airflow-publish.yml 
b/.github/workflows/airflow-publish.yml
index afcbbaf..c404997 100644
--- a/.github/workflows/airflow-publish.yml
+++ b/.github/workflows/airflow-publish.yml
@@ -131,3 +131,5 @@ jobs:
         uses: pypa/gh-action-pypi-publish@release/v1
         with:
           packages-dir: "./dist"
+          skip-existing: true
+          attestations: true
diff --git a/.github/workflows/providers-publish.yml 
b/.github/workflows/providers-publish.yml
index 01ee7fb..0b3cbaa 100644
--- a/.github/workflows/providers-publish.yml
+++ b/.github/workflows/providers-publish.yml
@@ -131,3 +131,5 @@ jobs:
         uses: pypa/gh-action-pypi-publish@release/v1
         with:
           packages-dir: "./dist"
+          skip-existing: true
+          attestations: true
diff --git a/.github/workflows/test-pypi-airflow-publish.yml 
b/.github/workflows/test-pypi-airflow-publish.yml
index 82c1c02..f63f6e4 100644
--- a/.github/workflows/test-pypi-airflow-publish.yml
+++ b/.github/workflows/test-pypi-airflow-publish.yml
@@ -131,4 +131,6 @@ jobs:
         uses: pypa/gh-action-pypi-publish@release/v1
         with:
           packages-dir: "./dist"
-          repository-url: https://test.pypi.org/legacy/
\ No newline at end of file
+          repository-url: https://test.pypi.org/legacy/
+          skip-existing: true
+          attestations: true
\ No newline at end of file
diff --git a/.github/workflows/providers-publish.yml 
b/.github/workflows/test-pypi-providers-publish.yml
similarity index 90%
copy from .github/workflows/providers-publish.yml
copy to .github/workflows/test-pypi-providers-publish.yml
index 01ee7fb..ad4aee6 100644
--- a/.github/workflows/providers-publish.yml
+++ b/.github/workflows/test-pypi-providers-publish.yml
@@ -16,7 +16,7 @@
 # under the License.
 #
 ---
-name: Dry run publish airflow provider packages
+name: Publish providers distribution 📦 to Test PyPI
 description: "Publish or verify svn artifacts"
 
 on:
@@ -24,21 +24,21 @@ on:
     inputs:
       release-config:
         description: "Path to the release config file"
-        required: true
-        default: "providers-rc-config.yml"
+        required: false
         type: choice
         options:
           - "providers-rc-config.yml"
           - "providers-pypi-config.yml"
+        default: "providers-rc-config.yml"
       mode:
         description: >
           Mode to run the action, set mode to 'RELEASE' to publish the 
packages to PyPI.
         required: false
         type: choice
-        default: "VERIFY"
         options:
           - "VERIFY"
           - "RELEASE"
+        default: "VERIFY"
 
 jobs:
   release-checks:
@@ -63,7 +63,7 @@ jobs:
         release-config: ${{ inputs.release-config }}
 
      - name: "Checkout svn ${{ steps.config-parser.outputs.publisher-url }}"
-       id: "svn-checkout"
+       id: svn-checkout
        uses: ./init
        with:
          temp-dir: asf-dist
@@ -71,7 +71,7 @@ jobs:
          repo-path: ${{ steps.config-parser.outputs.publisher-path }}
 
      - name: "Svn check"
-       id: "svn-check"
+       id: svn-check
        uses: ./svn
        with:
         svn-config: ${{ steps.config-parser.outputs.checks-svn }}
@@ -79,7 +79,7 @@ jobs:
         repo-path: ${{ steps.config-parser.outputs.publisher-path }}
 
      - name: "Checksum check"
-       id: "checksum-check"
+       id: checksum-check
        uses: ./checksum
        with:
         checksum-config: ${{ steps.config-parser.outputs.checks-checksum }}
@@ -87,7 +87,7 @@ jobs:
         repo-path: ${{ steps.config-parser.outputs.publisher-path }}
 
      - name: "Signature check"
-       id: "signature-check"
+       id: signature-check
        uses: ./signature
        with:
         signature-config: ${{ steps.config-parser.outputs.checks-signature }}
@@ -95,7 +95,7 @@ jobs:
         repo-path: ${{ steps.config-parser.outputs.publisher-path }}
 
      - name: "Find ${{ steps.config-parser.outputs.publisher-name }} packages"
-       id: "upload-artifacts"
+       id: upload-artifacts
        uses: ./artifacts
        with:
         artifact-config: ${{ steps.config-parser.outputs.checks-artifact }}
@@ -106,10 +106,9 @@ jobs:
         if-no-files-found: warn
         retention-days: '5'
         compression-level: '6'
-        overwrite: false
+        overwrite: 'false'
         artifact-name: pypi-packages
 
-
   publish-to-pypi:
     name: Publish svn packages to PyPI
     runs-on: ubuntu-20.04
@@ -127,7 +126,10 @@ jobs:
           merge-multiple: true
           path: ./dist
 
-      - name: "Publishing ${{ needs.release-checks.outputs.publisher-name }} 
distribution 📦 to PyPI"
+      - name: "Publishing ${{ needs.release-checks.outputs.publisher-name }} 
distribution 📦 to Test PyPI"
         uses: pypa/gh-action-pypi-publish@release/v1
         with:
-          packages-dir: "./dist"
+          packages-dir: ./dist
+          repository-url: https://test.pypi.org/legacy/
+          skip-existing: true
+          attestations: true

Reply via email to