Skip to content

⬆️ Upgrade bun lock #8

⬆️ Upgrade bun lock

⬆️ Upgrade bun lock #8

Workflow file for this run

name: 'publish'
on:
push:
tags:
- '*.*.*'
env:
APP_NAME: 'PEC Voltix'
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
# - platform: 'macos-latest' # for Arm based macs (M1 and above).
# args: '--target aarch64-apple-darwin'
# - platform: 'macos-latest' # for Intel based macs.
# args: '--target x86_64-apple-darwin'
# - platform: 'ubuntu-22.04'
# args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# build the changelog based on the commit messages between the versioned tags
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install npm as global
run: bun install -g npm
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Install frontend
run: |
bun install
- name: CI Upload Windows
if: ${{ github.ref_type == 'branch' && matrix.platform == 'windows-latest' }}
uses: actions/upload-artifact@v4
with:
name: 'Windows Installers'
path: |
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/bundle/nsis/*.exe
# - name: Update CHANGELOG
# id: changelog
# uses: requarks/changelog-action@v1
# with:
# token: ${{ github.token }}
# tag: ${{ github.ref_name }}
# - name: Build changelog.md
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# branch: main
# commit_message: 'πŸ“ Update changelog.md for ${{ github.ref_name }}'
# file_pattern: changelog.md
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
if: ${{ github.ref_type == 'tag' }}
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: '${{ env.APP_NAME }} v__VERSION__'
releaseBody: 'Download the assets below'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}