Browse Source

chore: fix release job (#1707)

João André 8 months ago
parent
commit
716a4cb740

+ 4 - 3
.github/workflows/build-and-release-single-package.yml

@@ -51,8 +51,6 @@ jobs:
           ${{ github.event.inputs.target_package }} >> $GITHUB_OUTPUT
           ${{ github.event.inputs.target_package }} >> $GITHUB_OUTPUT
 
 
   build-and-release-package:
   build-and-release-package:
-    permissions:
-      contents: write
     needs: [fetch-versions]
     needs: [fetch-versions]
     timeout-minutes: 20
     timeout-minutes: 20
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
@@ -159,6 +157,9 @@ jobs:
         working-directory: ${{ steps.set-variables.outputs.package_dir }}
         working-directory: ${{ steps.set-variables.outputs.package_dir }}
         run: |
         run: |
           python -m build
           python -m build
+
+      - name: Rename files
+        run: |
           for file in ./dist/*; do mv "$file" "${file//_/-}"; done
           for file in ./dist/*; do mv "$file" "${file//_/-}"; done
 
 
       - name: Create tag and release
       - name: Create tag and release
@@ -175,7 +176,7 @@ jobs:
 
 
       - name: Ensure Taipy release is marked as latest
       - name: Ensure Taipy release is marked as latest
         run: |
         run: |
-          gh release edit ${{needs.fetch-versions.outputs.taipy_VERSION}} --latest
+           gh release edit ${{needs.fetch-versions.outputs.taipy_VERSION}} --latest
         shell: bash
         shell: bash
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 6
.github/workflows/build-and-release.yml

@@ -44,12 +44,6 @@ jobs:
         run: |
         run: |
           python tools/release/setup_version.py ALL ${{ github.event.inputs.release_type }} ${{ github.event.inputs.target_version }} ${{ steps.extract_branch.outputs.branch }} >> $GITHUB_OUTPUT
           python tools/release/setup_version.py ALL ${{ github.event.inputs.release_type }} ${{ github.event.inputs.target_version }} ${{ steps.extract_branch.outputs.branch }} >> $GITHUB_OUTPUT
 
 
-      - uses: stefanzweifel/git-auto-commit-action@v4
-        with:
-          commit_message: Update version to ${{ steps.version-setup.outputs.NEW_VERSION }}
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
   build-and-release-taipy-packages:
   build-and-release-taipy-packages:
     needs: [fetch-versions]
     needs: [fetch-versions]
     timeout-minutes: 20
     timeout-minutes: 20