chore: bump version #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Deployment | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
release: | |
name: Publish on GitHub | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
build: [linux, macos, windows] | |
include: | |
- build: linux | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
- build: macos | |
os: macos-latest | |
target: x86_64-apple-darwin | |
- build: windows | |
os: windows-latest | |
target: x86_64-pc-windows-msvc | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
--allow-unauthenticated -y -qq \ | |
libgtk-3-dev \ | |
webkit2gtk-4.0 \ | |
libappindicator3-dev \ | |
librsvg2-dev patchelf | |
- name: Install node | |
uses: actions/setup-node@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: ${{ matrix.target }} | |
override: true | |
profile: minimal | |
- name: Build CLI | |
working-directory: cli | |
shell: bash | |
run: | | |
cargo build --verbose --locked \ | |
--release --target ${{ matrix.target }} | |
- name: Build GUI | |
working-directory: gui | |
shell: bash | |
run: | | |
yarn install --ignore-engines | |
yarn tauri info | |
CI=true yarn tauri build --target ${{ matrix.target }} | |
- name: Prepare artifacts [Unix] | |
shell: bash | |
if: matrix.os != 'windows-latest' | |
run: | | |
release_dir="spicy-launcher" | |
mkdir $release_dir | |
for bin in 'spicy-launcher' 'spicy-launcher-cli'; do | |
cp "target/${{ matrix.target }}/release/$bin" $release_dir/ | |
done | |
tar -czvf "spicy-launcher-${{ matrix.build }}.tar.gz" $release_dir/ | |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then | |
bundles=("deb" "AppImage") | |
else | |
bundles=("app" "dmg") | |
fi | |
for bundle in "${bundles[@]}"; do | |
mv "target/${{ matrix.target }}/release"/bundle/*/spicy-launcher*.$bundle \ | |
"spicy-launcher-${{ matrix.build }}.$bundle" | |
done | |
- name: Prepare artifacts [Windows] | |
shell: bash | |
if: matrix.os == 'windows-latest' | |
run: | | |
release_dir="spicy-launcher" | |
mkdir $release_dir | |
for bin in 'spicy-launcher.exe' 'spicy-launcher-cli.exe'; do | |
cp "target/${{ matrix.target }}/release/$bin" $release_dir/ | |
done | |
7z a -tzip "spicy-launcher-${{ matrix.build }}.zip" $release_dir/ | |
mv "target/${{ matrix.target }}/release"/bundle/*/spicy-launcher*.msi \ | |
"spicy-launcher-${{ matrix.build }}.msi" | |
- name: Publish release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: spicy-launcher-${{ matrix.build }}* | |
file_glob: true | |
overwrite: true | |
tag: ${{ github.ref }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} |