Skip to content

forgot to bump the version #247

forgot to bump the version

forgot to bump the version #247

Workflow file for this run

name: "publish"
on:
push:
tags:
- "v*"
# This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release.
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "ubuntu-24.04"
args: ""
- platform: "windows-latest"
args: ""
runs-on: ${{ matrix.platform }}
outputs:
assets: ${{steps.tauri.outputs.releaseUploadUrl}}
version: ${{steps.tauri.outputs.appVersion}}
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-24.04' # This must match the platform value defined above.
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libsecret-1-dev
- name: install frontend dependencies
run: pnpm install # change this to npm, pnpm or bun depending on which one you use.
- uses: Swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- uses: tauri-apps/tauri-action@v0
id: tauri
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
ETERNAL_API_TOKEN: ${{ secrets.ETERNAL_API_TOKEN }}
QUADRANT_API_KEY: ${{ secrets.QUADRANT_API_KEY }}
QUADRANT_OAUTH2_CLIENT_ID: ${{ secrets.QUADRANT_OAUTH2_CLIENT_ID }}
QUADRANT_OAUTH2_CLIENT_SECRET: ${{ secrets.QUADRANT_OAUTH2_CLIENT_SECRET }}
NO_STRIP: ${{ matrix.platform == 'ubuntu-24.04' && 'true' }}
with:
releaseName: "Quadrant v__VERSION__"
releaseBody: "See the assets to download this version and install. Check out the [changelog on my blog](https://blog.mrquantumoff.dev)"
releaseDraft: false
prerelease: ${{ !endsWith(github.ref_name, 'stable') }}
args: ${{ matrix.args }}
tagName: ${{github.ref_name}}
submit_update:
runs-on: ubuntu-latest
needs: publish-tauri
steps:
- name: Parse semver string
id: semver_parser
uses: booxmedialtd/ws-action-parse-semver@v1
with:
input_string: ${{github.ref_name}}
- uses: winterjung/split@v2
id: split
with:
msg: ${{steps.semver_parser.outputs.prerelease}}
separator: "."
- env:
VERSION: ${{github.ref_name}}
CHANNEL: ${{steps.split.outputs._0}}
run: |
curl -X PUT --header 'Authorization: ${{secrets.VERSION_UPDATE_TRIGGER_TOKEN}}' https://api.mrquantumoff.dev/api/any/quadrant/add_updates/$CHANNEL/$VERSION