Skip to content

Commit 72302a8

Browse files
RobPasMuepre-commit-ci[bot]PipKat
authored
feat: figure out binaries upload (#800)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kathy Pippert <84872299+PipKat@users.noreply.github.com>
1 parent 0c13c7d commit 72302a8

File tree

7 files changed

+45
-169
lines changed

7 files changed

+45
-169
lines changed

.github/workflows/ci_cd.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ jobs:
400400
labels: [self-hosted, Windows, signtool]
401401

402402
steps:
403+
- name: Check out repository pyansys-geometry-binaries
404+
uses: actions/checkout@v4
405+
with:
406+
repository: 'ansys/pyansys-geometry-binaries'
407+
token: ${{ env.BINARIES_TOKEN }}
408+
403409
- name: Download binaries
404410
run: |
405411
curl.exe -X GET -H "X-JFrog-Art-Api: ${{ secrets.ARTIFACTORY_KEY }}" ${{ secrets.ARTIFACTORY_URL }}/${{ env.ARTIFACTORY_VERSION }}/DockerWindows.zip --output windows-binaries.zip
@@ -410,14 +416,28 @@ jobs:
410416
with:
411417
name: windows-binaries.zip
412418
path: windows-binaries.zip
413-
retention-days: 7
419+
retention-days: 1
414420

415421
- name: Upload Linux binaries as workflow artifacts
416422
uses: actions/upload-artifact@v3
417423
with:
418424
name: linux-binaries.zip
419425
path: linux-binaries.zip
420-
retention-days: 7
426+
retention-days: 1
427+
428+
- name: Publish the binaries to private repo
429+
env:
430+
VERSION_WITH_PREFIX: ${{ github.ref_name }}
431+
run: |
432+
$env:VERSION=$env:VERSION_WITH_PREFIX.substring(1)
433+
mkdir $env:VERSION
434+
mv windows-binaries.zip .\$env:VERSION\
435+
mv linux-binaries.zip .\$env:VERSION\
436+
git config user.email ${{ env.BINARIES_EMAIL }}
437+
git config user.name ${{ env.BINARIES_USERNAME }}
438+
git add *
439+
git commit -m "adding binaries for ${{ github.ref_name }}"
440+
git push origin main
421441
422442
build-windows-container:
423443
name: Building Geometry Service - Windows
@@ -599,7 +619,7 @@ jobs:
599619
uses: ansys/actions/release-github@v4
600620
with:
601621
library-name: ${{ env.PACKAGE_NAME }}
602-
additional-artifacts: windows-binaries.zip windows-dockerfile.zip linux-binaries.zip linux-dockerfile.zip
622+
additional-artifacts: windows-dockerfile.zip linux-dockerfile.zip
603623

604624
upload_dev_docs:
605625
name: Upload dev documentation

.github/workflows/docker_test_build.yml

Lines changed: 0 additions & 162 deletions
This file was deleted.

doc/source/assets.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,19 @@ meaning that certain operations are not available or fail.
6363
Windows container
6464
^^^^^^^^^^^^^^^^^
6565

66-
* `Latest Geometry service binaries for Windows containers <https://github.com/ansys/pyansys-geometry/releases/latest/download/windows-binaries.zip>`_
66+
.. note::
67+
68+
Only users with access to https://github.com/ansys/pyansys-geometry-binaries can download these binaries.
69+
70+
* `Latest Geometry service binaries for Windows containers <https://github.com/ansys/pyansys-geometry-binaries>`_
6771
* `Latest Geometry service Dockerfile for Windows containers <https://github.com/ansys/pyansys-geometry/releases/latest/download/windows-dockerfile.zip>`_
6872

6973
Linux container
7074
^^^^^^^^^^^^^^^
7175

72-
* `Latest Geometry service binaries for Linux containers <https://github.com/ansys/pyansys-geometry/releases/latest/download/linux-binaries.zip>`_
76+
.. note::
77+
78+
Only users with access to https://github.com/ansys/pyansys-geometry-binaries can download these binaries.
79+
80+
* `Latest Geometry service binaries for Linux containers <https://github.com/ansys/pyansys-geometry-binaries>`_
7381
* `Latest Geometry service Dockerfile for Linux containers <https://github.com/ansys/pyansys-geometry/releases/latest/download/linux-dockerfile.zip>`_

doc/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def get_wheelhouse_assets_dictionary():
249249
latex_elements = {"preamble": latex.generate_preamble(html_title)}
250250

251251
linkcheck_exclude_documents = ["index", "getting_started/local/index", "assets"]
252+
linkcheck_ignore = [r"https://github.com/ansys/pyansys-geometry-binaries/.*"]
252253

253254
# -- Declare the Jinja context -----------------------------------------------
254255
exclude_patterns = []

doc/source/getting_started/docker/linux_container.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ Prerequisites
128128
* Download the `latest Linux Dockerfile <https://github.com/ansys/pyansys-geometry/blob/main/docker/Dockerfile.linux>`_.
129129

130130
* Download the `latest release artifacts for the Linux
131-
Docker container (ZIP file) <https://github.com/ansys/pyansys-geometry/releases/latest/download/linux-binaries.zip>`_.
131+
Docker container (ZIP file) according to your version <https://github.com/ansys/pyansys-geometry-binaries/>`_.
132+
133+
.. note::
134+
135+
Only users with access to https://github.com/ansys/pyansys-geometry-binaries can download these binaries.
132136

133137
* Move this ZIP file to the location of the Linux Dockerfile previously downloaded.
134138

doc/source/getting_started/docker/windows_container.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ Prerequisites
115115
* Download the `latest Windows Dockerfile <https://github.com/ansys/pyansys-geometry/blob/main/docker/Dockerfile.windows>`_.
116116

117117
* Download the `latest release artifacts for the Windows
118-
Docker container (ZIP file) <https://github.com/ansys/pyansys-geometry/releases/latest/download/windows-binaries.zip>`_.
118+
Docker container (ZIP file) for your version <https://github.com/ansys/pyansys-geometry-binaries/>`_.
119+
120+
.. note::
121+
122+
Only users with access to https://github.com/ansys/pyansys-geometry-binaries can download these binaries.
119123

120124
* Move this ZIP file to the location of the Windows Dockerfile previously downloaded.
121125

doc/styles/Vocab/ANSYS/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Geometry
1111
geometry
1212
Geometry service
1313
Geometry models
14+
github
1415
GitHub
1516
GitHub Container Registry
1617
namespace

0 commit comments

Comments
 (0)