Skip to content

Commit

Permalink
build js then tauri (#276)
Browse files Browse the repository at this point in the history
* build js then tauri

* needs

* dumb

* v4
  • Loading branch information
Brendonovich authored Jan 8, 2024
1 parent 92f98a5 commit d1d13b2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
39 changes: 36 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,36 @@ on:
workflow_dispatch:

jobs:
test-tauri:
build-desktop-frontend:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: install frontend dependencies
run: pnpm install

- name: build frontend
run: pnpm desktop build

- uses: actions/upload-artifact@v4
with:
name: apps-desktop-dotoutput
path: apps/desktop/.output

build-desktop-tauri:
needs: build-desktop-frontend
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -45,7 +74,12 @@ jobs:
run_install: false

- name: install frontend dependencies
run: pnpm install # change this to npm or pnpm depending on which one you use
run: pnpm install

- uses: actions/download-artifact@v4
with:
name: apps-desktop-dotoutput
path: apps/desktop/.output

- uses: JonasKruckenberg/tauri-build@v1
id: tauri_build
Expand All @@ -55,7 +89,6 @@ jobs:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}

# The `artifacts` output can now be used by a different action to upload the artifacts
- uses: actions/upload-artifact@v3
with:
name: artifacts-${{ matrix.platform }}
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build",
"devPath": "http://localhost:1420",
"distDir": "../.output/public",
"withGlobalTauri": false
Expand Down

1 comment on commit d1d13b2

@vercel
Copy link

@vercel vercel bot commented on d1d13b2 Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.