mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 10:19:47 +00:00
Use different retention policies for intermediate artifacts & release assets
This commit is contained in:
parent
4f20bd4ba5
commit
61a8b4827c
30
.github/workflows/build-and-release.yml
vendored
30
.github/workflows/build-and-release.yml
vendored
@ -3,7 +3,8 @@ on:
|
|||||||
push
|
push
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RETENTION_DAYS: 30
|
RETENTION_INTERMEDIATE_ASSETS: 1
|
||||||
|
RETENTION_RELEASE_ASSETS: 30
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_main:
|
build_main:
|
||||||
@ -288,7 +289,7 @@ jobs:
|
|||||||
runtime/target/${{ matrix.rust_target }}/release/bundle/macos/MindWork AI Studio.app.tar.gz*
|
runtime/target/${{ matrix.rust_target }}/release/bundle/macos/MindWork AI Studio.app.tar.gz*
|
||||||
.updates/platform
|
.updates/platform
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: ${{ env.RETENTION_DAYS }}
|
retention-days: ${{ env.RETENTION_INTERMEDIATE_ASSETS }}
|
||||||
|
|
||||||
- name: Upload artifact (Windows - MSI)
|
- name: Upload artifact (Windows - MSI)
|
||||||
if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'msi')
|
if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'msi')
|
||||||
@ -300,7 +301,7 @@ jobs:
|
|||||||
runtime/target/${{ matrix.rust_target }}/release/bundle/msi/MindWork AI Studio*msi.zip*
|
runtime/target/${{ matrix.rust_target }}/release/bundle/msi/MindWork AI Studio*msi.zip*
|
||||||
.updates/platform
|
.updates/platform
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: ${{ env.RETENTION_DAYS }}
|
retention-days: ${{ env.RETENTION_INTERMEDIATE_ASSETS }}
|
||||||
|
|
||||||
- name: Upload artifact (Windows - NSIS)
|
- name: Upload artifact (Windows - NSIS)
|
||||||
if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'nsis')
|
if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'nsis')
|
||||||
@ -312,7 +313,7 @@ jobs:
|
|||||||
runtime/target/${{ matrix.rust_target }}/release/bundle/nsis/MindWork AI Studio*nsis.zip*
|
runtime/target/${{ matrix.rust_target }}/release/bundle/nsis/MindWork AI Studio*nsis.zip*
|
||||||
.updates/platform
|
.updates/platform
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: ${{ env.RETENTION_DAYS }}
|
retention-days: ${{ env.RETENTION_INTERMEDIATE_ASSETS }}
|
||||||
|
|
||||||
- name: Upload artifact (Linux - Debian Package)
|
- name: Upload artifact (Linux - Debian Package)
|
||||||
if: startsWith(matrix.platform, 'ubuntu') && contains(matrix.tauri_bundle, 'deb')
|
if: startsWith(matrix.platform, 'ubuntu') && contains(matrix.tauri_bundle, 'deb')
|
||||||
@ -323,7 +324,7 @@ jobs:
|
|||||||
runtime/target/${{ matrix.rust_target }}/release/bundle/deb/mind-work-ai-studio_*.deb
|
runtime/target/${{ matrix.rust_target }}/release/bundle/deb/mind-work-ai-studio_*.deb
|
||||||
.updates/platform
|
.updates/platform
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: ${{ env.RETENTION_DAYS }}
|
retention-days: ${{ env.RETENTION_INTERMEDIATE_ASSETS }}
|
||||||
|
|
||||||
- name: Upload artifact (Linux - AppImage)
|
- name: Upload artifact (Linux - AppImage)
|
||||||
if: startsWith(matrix.platform, 'ubuntu') && contains(matrix.tauri_bundle, 'appimage')
|
if: startsWith(matrix.platform, 'ubuntu') && contains(matrix.tauri_bundle, 'appimage')
|
||||||
@ -335,7 +336,7 @@ jobs:
|
|||||||
runtime/target/${{ matrix.rust_target }}/release/bundle/appimage/mind-work-ai-studio*AppImage.tar.gz*
|
runtime/target/${{ matrix.rust_target }}/release/bundle/appimage/mind-work-ai-studio*AppImage.tar.gz*
|
||||||
.updates/platform
|
.updates/platform
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: ${{ env.RETENTION_DAYS }}
|
retention-days: ${{ env.RETENTION_INTERMEDIATE_ASSETS }}
|
||||||
|
|
||||||
build_linux_arm64:
|
build_linux_arm64:
|
||||||
name: Build app (linux-arm64)
|
name: Build app (linux-arm64)
|
||||||
@ -537,7 +538,7 @@ jobs:
|
|||||||
result/target/aarch64-unknown-linux-gnu/release/bundle/deb/mind-work-ai-studio_*.deb
|
result/target/aarch64-unknown-linux-gnu/release/bundle/deb/mind-work-ai-studio_*.deb
|
||||||
.updates/platform
|
.updates/platform
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
retention-days: ${{ env.RETENTION_DAYS }}
|
retention-days: ${{ env.RETENTION_INTERMEDIATE_ASSETS }}
|
||||||
|
|
||||||
read_metadata:
|
read_metadata:
|
||||||
name: Read metadata
|
name: Read metadata
|
||||||
@ -585,7 +586,7 @@ jobs:
|
|||||||
echo "EOOOF" >> "$GITHUB_OUTPUT"
|
echo "EOOOF" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
create_release:
|
create_release:
|
||||||
name: Prepare and create the final release
|
name: Prepare & create release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build_main, read_metadata] # TODO: build_linux_arm64
|
needs: [build_main, read_metadata] # TODO: build_linux_arm64
|
||||||
steps:
|
steps:
|
||||||
@ -710,4 +711,15 @@ jobs:
|
|||||||
run: ls -Rlhat $GITHUB_WORKSPACE/release/assets
|
run: ls -Rlhat $GITHUB_WORKSPACE/release/assets
|
||||||
|
|
||||||
- name: Display the content of latest.json
|
- name: Display the content of latest.json
|
||||||
run: cat $GITHUB_WORKSPACE/release/assets/latest.json
|
run: cat $GITHUB_WORKSPACE/release/assets/latest.json
|
||||||
|
|
||||||
|
- name: Upload release assets
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
env:
|
||||||
|
FORMATTED_VERSION: ${{ needs.read_metadata.outputs.formatted_version }}
|
||||||
|
|
||||||
|
with:
|
||||||
|
name: MindWork AI Studio ${{ env.FORMATTED_VERSION }}
|
||||||
|
path: $GITHUB_WORKSPACE/release/assets
|
||||||
|
if-no-files-found: error
|
||||||
|
retention-days: ${{ env.RETENTION_RELEASE_ASSETS }}
|
Loading…
Reference in New Issue
Block a user