Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
path: './site'

deploy:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
environment:
Expand Down
32 changes: 29 additions & 3 deletions .github/workflows/publish-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ on:
- 'site/**'
- '.github/workflows/deploy-site.yml'

pull_request:
branches:
- main

concurrency:
group: tauri-release
cancel-in-progress: true

jobs:
publish-tauri:
environment: tauri-app
permissions:
contents: write

strategy:
fail-fast: false
matrix:
Expand All @@ -37,7 +47,12 @@ jobs:
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'ubuntu-22.04-arm'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
xdg-utils

- name: setup node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -69,14 +84,25 @@ jobs:
- name: build frontend
run: pnpm build

# Build only for PRs
- name: build tauri app
if: github.event_name == 'pull_request'
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
run: pnpm tauri build ${{ matrix.args }}

# Create release only on main push
- uses: tauri-apps/tauri-action@v0
if: github.event_name == 'push'
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 }}
with:
tagName: app-v__VERSION__ # action automatically replaces __VERSION__ with the app version.
releaseName: 'End-Point v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: false
prerelease: false
releaseDraft: true
includeUpdaterJson: true
args: ${{ matrix.args }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-http": "~2.5.4",
"@tauri-apps/plugin-opener": "^2",
"@tauri-apps/plugin-process": "^2.3.1",
"@tauri-apps/plugin-sql": "~2.3.1",
"@tauri-apps/plugin-updater": "~2.10.1",
"axios": "^1.16.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0"
},
Expand Down
Loading
Loading