Skip to content

Commit 45bcf87

Browse files
fix: Add changelog missing line, add private PyPI
1 parent 4abcd77 commit 45bcf87

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

.github/workflows/cicd.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,17 @@ jobs:
3030
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
3131
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
3232

33-
vulnerabilities:
34-
name: Vulnerabilities
33+
check-vulnerabilities:
34+
name: "Check library vulnerabilities"
3535
runs-on: ubuntu-latest
3636
steps:
37-
- name: PyAnsys Vulnerability check (on main)
38-
if: github.ref == 'refs/heads/main'
39-
uses: ansys/actions/check-vulnerabilities@v10
37+
- uses: ansys/actions/[email protected]
4038
with:
4139
python-version: ${{ env.MAIN_PYTHON_VERSION }}
42-
python-package-name: ${{ env.PACKAGE_NAME }}
4340
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
44-
45-
- name: PyAnsys Vulnerability check (on dev mode)
46-
if: github.ref != 'refs/heads/main'
47-
uses: ansys/actions/check-vulnerabilities@v10
48-
with:
49-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
5041
python-package-name: ${{ env.PACKAGE_NAME }}
51-
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
52-
dev-mode: true
42+
dev-mode: ${{ github.ref != "refs/heads/main" }}
43+
5344
style:
5445
name: Code style
5546
runs-on: ubuntu-latest
@@ -157,13 +148,20 @@ jobs:
157148
name: ${{ env.PACKAGE_NAME }}-artifacts
158149
path: ${{ env.PACKAGE_NAME }}-artifacts
159150

160-
- name: "Upload artifacts to PyPI using trusted publisher"
161-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
151+
# - name: "Upload artifacts to PyPI using trusted publisher"
152+
# uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
153+
# with:
154+
# repository-url: "https://upload.pypi.org/legacy/"
155+
# print-hash: true
156+
# packages-dir: ${{ env.PACKAGE_NAME }}-artifacts
157+
# skip-existing: false
158+
159+
- name: "Release to the private PyPI repository"
160+
uses: ansys/actions/release-pypi-private@v9
162161
with:
163-
repository-url: "https://upload.pypi.org/legacy/"
164-
print-hash: true
165-
packages-dir: ${{ env.PACKAGE_NAME }}-artifacts
166-
skip-existing: false
162+
library-name: "ansys-api-meshing-maestro"
163+
twine-username: "__token__"
164+
twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
167165

168166
- name: Release to GitHub
169167
uses: ansys/actions/release-github@v10

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- towncrier release notes start -->

0 commit comments

Comments
 (0)