|
17 | 17 | DOC_BUILD_SYC_VERSION: 25_2 |
18 | 18 | FLUENT_IMAGE_VERSION: "v25.2.0" |
19 | 19 | SYC_IMAGE_VERSION: "v25.2.0" |
20 | | - MAPDL_IMAGE_VERSION: "v25.1-ubuntu" |
| 20 | + MAPDL_IMAGE_VERSION: "v25.1-ubuntu-cicd" # TODO: update to 25.2 |
21 | 21 |
|
22 | 22 | permissions: {} # Zero permissions can be granted at the workflow level if not all jobs require permissions. |
23 | 23 | # As a good rule of thumb, this normally includes jobs that don't use secrets. |
@@ -326,7 +326,7 @@ jobs: |
326 | 326 | # extra_mem_top: 30000000 |
327 | 327 |
|
328 | 328 | - name: Upload HTML Documentation |
329 | | - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
| 329 | + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 |
330 | 330 | with: |
331 | 331 | name: documentation-html |
332 | 332 | path: doc/_build/html |
@@ -363,34 +363,25 @@ jobs: |
363 | 363 | needs: [test, docs] |
364 | 364 | runs-on: ubuntu-latest |
365 | 365 | steps: |
366 | | - - name: Release to the private PyPI repository |
367 | | - uses: ansys/actions/release-pypi-private@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 |
368 | | - with: |
369 | | - library-name: ${{ env.PACKAGE_NAME }} |
370 | | - twine-username: "__token__" |
371 | | - twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }} |
372 | 366 |
|
373 | | - - name: "Release to the public PyPI repository" |
374 | | - uses: ansys/actions/release-pypi-public@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 |
375 | | - with: |
376 | | - library-name: ${{ env.PACKAGE_NAME }} |
377 | | - twine-username: "__token__" |
378 | | - twine-token: ${{ secrets.PYPI_TOKEN }} |
379 | | - |
380 | | - # TODO: We can't use ansys/actions/release-github as it assumes PDF doc. |
381 | | - - name: Set up Python |
382 | | - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 |
| 367 | + - name: "Download the library artifacts from build-library step" |
| 368 | + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
383 | 369 | with: |
384 | | - python-version: ${{ env.MAIN_PYTHON_VERSION }} |
| 370 | + name: ${{ env.PACKAGE_NAME }}-artifacts |
| 371 | + path: ${{ env.PACKAGE_NAME }}-artifacts |
385 | 372 |
|
386 | | - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
387 | | - with: |
388 | | - persist-credentials: false |
389 | | - - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
390 | 373 |
|
391 | 374 | - name: Display structure of downloaded files |
392 | 375 | run: ls -R |
393 | 376 |
|
| 377 | + - name: "Upload artifacts to PyPI using trusted publisher" |
| 378 | + uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 |
| 379 | + with: |
| 380 | + repository-url: "https://upload.pypi.org/legacy/" |
| 381 | + print-hash: true |
| 382 | + packages-dir: ${{ env.PACKAGE_NAMEt }}-artifacts |
| 383 | + skip-existing: false |
| 384 | + |
394 | 385 | - name: "Release to GitHub" |
395 | 386 | uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1 |
396 | 387 | with: |
|
0 commit comments