New artifact name

This commit is contained in:
Pierre Jacquier
2024-07-09 06:58:33 -04:00
parent c949f9bf07
commit 61defcab18

View File

@ -17,6 +17,7 @@ env:
# CUT_RELEASE_PR: ${{ github.event_name == 'pull_request' && (contains(github.event.pull_request.title, 'Cut release v')) }}
BUILD_RELEASE: true
# BUILD_RELEASE: ${{ github.event_name == 'release' || github.event_name == 'schedule' || github.event_name == 'pull_request' && (contains(github.event.pull_request.title, 'Cut release v')) }}
BUILD_ARTIFACT_NAME: build
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@ -122,6 +123,7 @@ jobs:
- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'schedule' || env.CUT_RELEASE_PR }}
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
path: |
package.json
src-tauri/tauri.conf.json
@ -148,6 +150,8 @@ jobs:
- uses: actions/download-artifact@v3
if: github.event_name == 'schedule'
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
- name: Copy updated .json files
if: github.event_name == 'schedule'
@ -361,6 +365,7 @@ jobs:
PREFIX: ${{ matrix.os == 'macos-14' && 'src-tauri/target/universal-apple-darwin' || 'src-tauri/target' }}
MODE: ${{ env.BUILD_RELEASE == 'true' && 'release' || 'debug' }}
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
path: "${{ env.PREFIX }}/${{ env.MODE }}/bundle/*/*"
- name: Run e2e tests (linux only)
@ -388,15 +393,14 @@ jobs:
- uses: actions/download-artifact@v3
if: env.CUT_RELEASE_PR
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
- name: Copy updated .json file for updater test
if: env.CUT_RELEASE_PR
run: |
ls -l artifact
cp artifact/src-tauri/tauri.release.conf.json src-tauri/tauri.release.conf.json
cat src-tauri/tauri.release.conf.json
run: cp artifact/src-tauri/tauri.release.conf.json src-tauri/tauri.release.conf.json
- name: Build the app (release, updater test)
- name: Build the app for updater test
if: ${{ env.CUT_RELEASE_PR && matrix.os != 'ubuntu-latest' }}
env:
TAURI_CONF_ARGS: "-c ${{ matrix.os == 'windows-latest' && 'src-tauri\\tauri.release.conf.json' || 'src-tauri/tauri.release.conf.json' }}"
@ -426,6 +430,8 @@ jobs:
URL_CODED_NAME: ${{ github.event_name == 'schedule' && 'Zoo%20Modeling%20App%20%28Nightly%29' || 'Zoo%20Modeling%20App' }}
steps:
- uses: actions/download-artifact@v3
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
- name: Generate the update static endpoint
run: |