@@ -44,25 +44,25 @@ jobs:
4444 cache-dependency-path : ' **/package-lock.json'
4545
4646 - name : Set versions
47- if : matrix.os == 'ubuntu-latest '
47+ if : matrix.os == 'ubuntu-20.04 '
4848 run : |
4949 release_version=${{ github.event.inputs.release_version }}
5050 release_branch_name=${release_version%.*}.x
5151 echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
5252
5353 - name : Get glibc version
54- if : matrix.os == 'ubuntu-latest '
54+ if : matrix.os == 'ubuntu-20.04 '
5555 run : |
5656 version=$(ldd --version | head -n 1 | awk '{print $NF}')
5757 echo "GLIBC_VERSION=$version" >> $GITHUB_ENV
5858 echo "::set-output name=glibc_version::$version"
5959
6060 - name : Set antora version
61- if : matrix.os == 'ubuntu-latest '
61+ if : matrix.os == 'ubuntu-20.04 '
6262 run : yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/ame-guide/antora.yml
6363
6464 - name : Commit version changes and push to upstream repository
65- if : matrix.os == 'ubuntu-latest '
65+ if : matrix.os == 'ubuntu-20.04 '
6666 run : |
6767 git config --global user.email "[email protected] " 6868 git config --global user.name "github-actions"
@@ -104,7 +104,7 @@ jobs:
104104 chmod 755 backend/ame-backend.sh
105105
106106 - name : Download aspect model service into project (Linux)
107- if : matrix.os == 'ubuntu-latest '
107+ if : matrix.os == 'ubuntu-20.04 '
108108 run : |
109109 mkdir backend
110110
@@ -157,7 +157,7 @@ jobs:
157157 working-directory : core
158158
159159 - name : Set app version (Unix)
160- if : matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest '
160+ if : matrix.os == 'macos-latest' || matrix.os == 'ubuntu-20.04 '
161161 run : npm version ${{ github.event.inputs.release_version }}
162162 working-directory : core
163163
@@ -172,7 +172,7 @@ jobs:
172172 working-directory : core
173173
174174 - name : Build electron app (Linux)
175- if : matrix.os == 'ubuntu-latest '
175+ if : matrix.os == 'ubuntu-20.04 '
176176 run : |
177177 npm run electron-builder-linux-prod
178178 mv electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux.tar.gz electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux-glibc-v${{ env.GLIBC_VERSION }}.tar.gz
@@ -211,7 +211,7 @@ jobs:
211211 tag : v${{ github.event.inputs.release_version }}
212212
213213 - name : Create GitHub release (Linux)
214- if : ${{ (matrix.os == 'ubuntu-latest ') && (!contains( github.ref, '-rc' )) }}
214+ if : ${{ (matrix.os == 'ubuntu-20.04 ') && (!contains( github.ref, '-rc' )) }}
215215 uses : svenstaro/upload-release-action@latest
216216 with :
217217 overwrite : true
@@ -221,7 +221,7 @@ jobs:
221221 tag : v${{ github.event.inputs.release_version }}
222222
223223 - name : Create GitHub pre-release (Linux)
224- if : ${{ (matrix.os == 'ubuntu-latest ') && (contains( github.ref, '-rc' )) }}
224+ if : ${{ (matrix.os == 'ubuntu-20.04 ') && (contains( github.ref, '-rc' )) }}
225225 uses : svenstaro/upload-release-action@latest
226226 with :
227227 overwrite : true
0 commit comments