Skip to content

Commit 07dc6d2

Browse files
fix(ci): update to Ansys actions v8 (#517)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent e2524e3 commit 07dc6d2

File tree

2 files changed

+12
-58
lines changed

2 files changed

+12
-58
lines changed

.github/workflows/ci_cd.yml

Lines changed: 11 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ env:
1212
MAIN_PYTHON_VERSION : '3.10'
1313
PACKAGE_NAME: 'ansys_sphinx_theme'
1414
DOCUMENTATION_CNAME: 'sphinxdocs.ansys.com'
15-
MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
16-
MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
1715

1816
concurrency:
1917
group: ${{ github.workflow }}-${{ github.ref }}
@@ -26,7 +24,7 @@ jobs:
2624
runs-on: ubuntu-latest
2725
steps:
2826
- name: "Run Ansys code style checks"
29-
uses: ansys/actions/code-style@v7
27+
uses: ansys/actions/code-style@v8
3028
with:
3129
python-version: ${{ env.MAIN_PYTHON_VERSION }}
3230

@@ -35,7 +33,7 @@ jobs:
3533
runs-on: ubuntu-latest
3634
steps:
3735
- name: "Run Ansys documentation style checks"
38-
uses: ansys/actions/doc-style@v7
36+
uses: ansys/actions/doc-style@v8
3937
with:
4038
token: ${{ secrets.GITHUB_TOKEN }}
4139

@@ -47,7 +45,7 @@ jobs:
4745
contents: write
4846
pull-requests: write
4947
steps:
50-
- uses: ansys/actions/doc-deploy-changelog@v7
48+
- uses: ansys/actions/doc-deploy-changelog@v8
5149
with:
5250
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
5351

@@ -57,7 +55,7 @@ jobs:
5755
needs: doc-style
5856
steps:
5957
- name: "Run Ansys documentation building action"
60-
uses: ansys/actions/doc-build@v7
58+
uses: ansys/actions/doc-build@v8
6159
with:
6260
python-version: ${{ env.MAIN_PYTHON_VERSION }}
6361
add-pdf-html-docs-as-assets: true
@@ -71,7 +69,7 @@ jobs:
7169
needs: build-library
7270
steps:
7371
- name: "Deploy developers documentation"
74-
uses: ansys/actions/doc-deploy-dev@v7
72+
uses: ansys/actions/doc-deploy-dev@v8
7573
with:
7674
cname: ${{ env.DOCUMENTATION_CNAME }}
7775
token: ${{ secrets.GITHUB_TOKEN }}
@@ -83,7 +81,7 @@ jobs:
8381
needs: release
8482
steps:
8583
- name: "Deploy stable documentation"
86-
uses: ansys/actions/doc-deploy-stable@v7
84+
uses: ansys/actions/doc-deploy-stable@v8
8785
with:
8886
cname: ${{ env.DOCUMENTATION_CNAME }}
8987
token: ${{ secrets.GITHUB_TOKEN }}
@@ -105,7 +103,7 @@ jobs:
105103
os: macos-latest
106104
steps:
107105
- name: "Build wheelhouse and perform smoke test"
108-
uses: ansys/actions/build-wheelhouse@v7
106+
uses: ansys/actions/build-wheelhouse@v8
109107
with:
110108
library-name: ${{ env.PACKAGE_NAME }}
111109
operating-system: ${{ matrix.os }}
@@ -117,7 +115,7 @@ jobs:
117115
needs: [doc-build, smoke-tests]
118116
steps:
119117
- name: "Build library source and wheel artifacts"
120-
uses: ansys/actions/build-library@v7
118+
uses: ansys/actions/build-library@v8
121119
with:
122120
library-name: ${{ env.PACKAGE_NAME }}
123121

@@ -129,65 +127,20 @@ jobs:
129127
steps:
130128

131129
- name: "Release to the private PyPI repository"
132-
uses: ansys/actions/release-pypi-private@v7
130+
uses: ansys/actions/release-pypi-private@v8
133131
with:
134132
library-name: ${{ env.PACKAGE_NAME }}
135133
twine-username: "__token__"
136134
twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
137135

138136
- name: "Release to the public PyPI repository"
139-
uses: ansys/actions/release-pypi-public@v7
137+
uses: ansys/actions/release-pypi-public@v8
140138
with:
141139
library-name: ${{ env.PACKAGE_NAME }}
142140
twine-username: "__token__"
143141
twine-token: ${{ secrets.PYPI_TOKEN }}
144142

145143
- name: "Release to GitHub"
146-
uses: ansys/actions/release-github@v7
144+
uses: ansys/actions/release-github@v8
147145
with:
148146
library-name: ${{ env.PACKAGE_NAME }}
149-
150-
doc-index-dev:
151-
name: "Deploy dev index docs"
152-
if: github.ref == 'refs/heads/main'
153-
runs-on: ubuntu-latest
154-
needs: doc-deploy-development
155-
steps:
156-
- name: "Deploy the latest documentation index"
157-
uses: ansys/actions/doc-deploy-index@v7
158-
with:
159-
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
160-
index-name: "ansys-sphinx-theme-vdev"
161-
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
162-
api-key: ${{ env.MEILISEARCH_API_KEY }}
163-
164-
doc-index-stable:
165-
name: "Deploy stable docs index"
166-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
167-
runs-on: ubuntu-latest
168-
needs: doc-deploy-stable
169-
steps:
170-
- name: "Install Git and clone project"
171-
uses: actions/checkout@v4
172-
173-
- name: "get version of library"
174-
shell: bash
175-
run: |
176-
python -m pip install -e .
177-
178-
- name: Scrape the stable documentation to PyMeilisearch
179-
run: |
180-
VERSION=$(python -c "from ansys_sphinx_theme import __version__; print('.'.join(__version__.split('.')[:2]))")
181-
VERSION_MEILI=$(python -c "from ansys_sphinx_theme import __version__; print('-'.join(__version__.split('.')[:2]))")
182-
echo "Calculated VERSION: $VERSION"
183-
echo "Calculated VERSION_MEILI: $VERSION_MEILI"
184-
echo "VERSION=$VERSION" >> $GITHUB_ENV
185-
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
186-
187-
- name: "Deploy the latest documentation index"
188-
uses: ansys/actions/doc-deploy-index@v7
189-
with:
190-
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
191-
index-name: ansys-sphinx-theme-v${{ env.VERSION_MEILI }}
192-
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
193-
api-key: ${{ env.MEILISEARCH_API_KEY }}

doc/changelog.d/517.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix(ci): update to Ansys actions v8

0 commit comments

Comments
 (0)