mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* configure the updater and some fix some macos tahoe css errors * enclosure for title_bar_style on Window build * those should have been added to the commit * test update to 0.6.0 * allow unused mut * update version in tauri.conf * fix versioned release draft * fix windows beforeBundle script * force app restart on update * fix release build * fix latest tag files * latest tag title * try testing for windows ARM * improve build workflow cleanup for cache * actually use the windows-11-arm runner * copy and bundle openssl items directly from runner * we actually need those files as placeholders for linters and unit tests * no need to rebuild assets when converting draft to published * fix verbosity * fix windows openssl dir * converting draft release to published should not run the build workflows * converting draft release to published should not run the build workflows * separate release draft build from publish * release dekstop dispatch * release dekstop dispatch * fix dylibs * undo fix_dylib change and attempt to handle restart on update * move restart exit code up * bump version to test updater restarting * windows updater signature * positional argument..? * arg is --password * try this for mac updater * add message to updater to inform users to start the app manually after update * add toast message for first API run * get windows to open the window after updating..? * cargo clippy * update package locks for vite * fix css thing * version bump for another test * bump for v 1 --------- Co-authored-by: deeleeramone <>
77 lines
2.2 KiB
YAML
Vendored
77 lines
2.2 KiB
YAML
Vendored
name: Build Desktop Draft Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
draft:
|
|
description: "Create as draft release"
|
|
required: false
|
|
default: true
|
|
type: boolean
|
|
|
|
jobs:
|
|
build-windows:
|
|
uses: ./.github/workflows/build-desktop-win64.yml
|
|
with:
|
|
release: true
|
|
secrets: inherit
|
|
permissions:
|
|
contents: write
|
|
|
|
build-macos-arm:
|
|
uses: ./.github/workflows/build-desktop-osxARM.yml
|
|
with:
|
|
release: true
|
|
secrets: inherit
|
|
permissions:
|
|
contents: write
|
|
|
|
build-macos-x64:
|
|
uses: ./.github/workflows/build-desktop-osx64.yml
|
|
with:
|
|
release: true
|
|
secrets: inherit
|
|
permissions:
|
|
contents: write
|
|
|
|
publish:
|
|
needs: [build-windows, build-macos-arm, build-macos-x64]
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Download all artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
path: artifacts
|
|
|
|
- name: Sanitize artifact filenames
|
|
run: |
|
|
find ./artifacts -depth -name "* *" | while read -r file; do mv "$file" "$(echo "$file" | tr ' ' '-')"; done
|
|
|
|
- name: Extract Version and Tag
|
|
id: extract_version
|
|
run: |
|
|
INSTALLER_FILE=$(find ./artifacts -name "*.exe" -o -name "*.dmg" | head -n 1)
|
|
VERSION=$(basename "$INSTALLER_FILE" | sed -n 's/.*_\([0-9]\+\.[0-9]\+\.[0-9]\+\)_.*/\1/p')
|
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
echo "release_name=ODP Desktop v$VERSION" >> $GITHUB_OUTPUT
|
|
echo "versioned_tag=Open-Data-Platform-v$VERSION" >> $GITHUB_OUTPUT
|
|
|
|
- name: Prepare assets
|
|
id: prep_assets
|
|
run: |
|
|
mkdir ./release_assets
|
|
find ./artifacts -type f -print -exec cp {} ./release_assets/ \;
|
|
echo "assets_path=./release_assets" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create VERSIONED release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: ${{ steps.extract_version.outputs.versioned_tag }}
|
|
name: ${{ steps.extract_version.outputs.release_name }}
|
|
files: ${{ steps.prep_assets.outputs.assets_path }}/*
|
|
draft: true
|
|
prerelease: false
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|