Skip to content

Commit

Permalink
added publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Dec 9, 2023
1 parent 5fcc09a commit 0b99c3b
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}

- uses: actions/upload-artifact@v2
if: matrix.platform == 'ubuntu-latest'
with:
name: liquidlauncher-linux
path: ./src-tauri/target/release/bundle/appimage/liquidlauncher_**.AppImage.*

- uses: actions/upload-artifact@v2
if: matrix.platform == 'windows-latest'
with:
name: liquidlauncher-windows
path: ./src-tauri/target/release/bundle/msi/liquidlauncher_**.msi.*

- uses: actions/upload-artifact@v2
if: matrix.platform == 'macos-latest'
with:
name: liquidlauncher-macos
path: ./src-tauri/target/release/bundle/macos/liquidlauncher.app.tar.*
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
46 changes: 46 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 'publish'

on:
push:
branches:
- tauri_release

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: 21

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false

0 comments on commit 0b99c3b

Please sign in to comment.