Skip to content

Commit

Permalink
ci: Separate workflow for tauri
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddiM8 committed Sep 7, 2023
1 parent 46daa72 commit 748e406
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 36 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-tauri.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: publish-tauri
on:
workflow_dispatch:

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

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
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: |
cd app
npm ci
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: ./app
tagName: desktop-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the version
releaseName: 'Planera Desktop'
releaseDraft: true
prerelease: false
37 changes: 1 addition & 36 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,7 @@ on:
workflow_dispatch:

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

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
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: |
cd app
npm ci
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: ./app
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the version
releaseName: 'Planera v__VERSION__'
releaseDraft: true
prerelease: false
publish-docker-image:
publish-docker-images:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions Planera.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
docker-compose.dev.yml = docker-compose.dev.yml
.github\workflows\publish.yml = .github\workflows\publish.yml
.github\workflows\publish-tauri.yml = .github\workflows\publish-tauri.yml
EndProjectSection
EndProject
Global
Expand Down

0 comments on commit 748e406

Please sign in to comment.