Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add deploy workflow, update UI #2

Merged
merged 26 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
242fc80
setup deploy ci
lucasfernog-crabnebula Aug 14, 2024
ef9ad8c
fix slug
lucasfernog-crabnebula Aug 14, 2024
814bbc2
add cache
lucasfernog-crabnebula Aug 14, 2024
e830a5c
fix cache
lucasfernog-crabnebula Aug 14, 2024
5d0f1eb
fix arg (?)
lucasfernog-crabnebula Aug 14, 2024
06bc8f5
update cloud-release
lucasfernog-crabnebula Aug 15, 2024
95a91d8
build on ubuntu-22.04
lucasfernog-crabnebula Aug 15, 2024
bf5d2ff
macos codesign
lucasfernog-crabnebula Aug 15, 2024
da64419
add mobile CI
lucasfernog-crabnebula Aug 15, 2024
1db60c4
add doc
lucasfernog-crabnebula Aug 15, 2024
38dd43c
verbose
lucasfernog-crabnebula Aug 15, 2024
9b071c2
fix install deps
lucasfernog-crabnebula Aug 15, 2024
98b404d
verbose desktop build
lucasfernog-crabnebula Aug 15, 2024
0da9f55
remove rustflags, comment out upload mobile
lucasfernog-crabnebula Aug 15, 2024
199f677
try with cli fix to see what's failing
lucasfernog-crabnebula Aug 15, 2024
eff3f62
clear rustflags
lucasfernog-crabnebula Aug 15, 2024
1773ddf
fix key path
lucasfernog-crabnebula Aug 15, 2024
58340e6
revert back to pnpm tauri [skip ci]
lucasfernog-crabnebula Aug 15, 2024
33610c6
test ci
lucasfernog-crabnebula Dec 3, 2024
4f607eb
tauri v2, commit android/iOS projects
lucasfernog-crabnebula Dec 3, 2024
4dbd902
fix cwd
lucasfernog-crabnebula Dec 3, 2024
3bd4560
fix team
lucasfernog-crabnebula Dec 3, 2024
26895f5
change APPLE_TEAM_ID
lucasfernog-crabnebula Dec 3, 2024
b44cb48
rustflags, fix path
lucasfernog-crabnebula Dec 3, 2024
437c390
a bit of style
denjell-crabnebula Dec 10, 2024
106a390
remove android & iOS tests
lucasfernog-crabnebula Dec 10, 2024
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
101 changes: 101 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Tauri v2 Release Process

on:
workflow_dispatch:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CN_APPLICATION: "cn-testing/release-channels-demo"

jobs:
draft:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: create draft release
uses: crabnebula-dev/cloud-release@v0
with:
command: release draft ${{ env.CN_APPLICATION }} --framework tauri
api-key: ${{ secrets.CN_API_KEY }}

build_desktop:
needs: draft

strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- macos-latest
- windows-latest

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache: true
rustflags: ""

- name: install Linux dependencies
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.1

- name: build Tauri app for Windows, Linux
if: matrix.os != 'macos-latest'
run: |
pnpm install
pnpm tauri build
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}

- name: Install x86_64-apple-darwin for mac and build Tauri binaries
if: matrix.os == 'macos-latest'
run: |
rustup target add x86_64-apple-darwin
pnpm install
pnpm tauri build --target x86_64-apple-darwin
pnpm tauri build --target aarch64-apple-darwin
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}

- name: upload assets
uses: crabnebula-dev/cloud-release@v0
with:
command: release upload ${{ env.CN_APPLICATION }} --framework tauri
api-key: ${{ secrets.CN_API_KEY }}

publish:
needs: [build_desktop]

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: publish release
uses: crabnebula-dev/cloud-release@v0
with:
command: release publish ${{ env.CN_APPLICATION }} --framework tauri
api-key: ${{ secrets.CN_API_KEY }}
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@
},
"license": "MIT",
"dependencies": {
"@tauri-apps/api": ">=2.0.0-rc.0",
"@tauri-apps/plugin-process": "2.0.0-rc.0",
"@tauri-apps/plugin-shell": ">=2.0.0-rc.0",
"@tauri-apps/plugin-updater": "2.0.0-rc.0",
"solid-js": "^1.7.8"
"@tauri-apps/api": "^2.1.1",
"@tauri-apps/plugin-opener": "^2.2.0",
"@tauri-apps/plugin-process": "2.0.0",
"@tauri-apps/plugin-shell": "^2.0.1",
"@tauri-apps/plugin-updater": "2.0.0",
"solid-js": "^1.9.3"
},
"devDependencies": {
"@tauri-apps/cli": ">=2.0.0-rc.0",
"typescript": "^5.2.2",
"vite": "^5.3.1",
"vite-plugin-solid": "^2.8.0",
"@tauri-apps/cli": "^2.1.0",
"typescript": "^5.7.2",
"vite": "^6.0.3",
"vite-plugin-solid": "^2.11.0",
"yargs": "^17.7.2"
}
}
Loading