diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..827b776 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,57 @@ +name: Release +on: + push: + tags: + - "v*" + workflow_dispatch: + +jobs: + release: + strategy: + fail-fast: false + matrix: + platform: [macos-latest, ubuntu-22.04, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev + - name: Rust setup + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Rust cache + uses: swatinem/rust-cache@v2 + with: + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + + - name: Set up Node.js ⚙️ + uses: actions/setup-node@v2 + with: + node-version: "18.x" + cache: "yarn" + + - name: Install dependencies and build web 📦 + run: | + cd libra_api/google-clone + yarn install --frozen-lockfile + yarn build + + - name: Build the app + uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tagName: ${{ github.ref_name }} + releaseName: "Ajou Libra v__VERSION__" + releaseBody: "See the assets to download and install this version." + releaseDraft: true + prerelease: false diff --git a/libra_api/google-clone/src-tauri/tauri.conf.json b/libra_api/google-clone/src-tauri/tauri.conf.json index 047a784..9a7b0f9 100644 --- a/libra_api/google-clone/src-tauri/tauri.conf.json +++ b/libra_api/google-clone/src-tauri/tauri.conf.json @@ -64,7 +64,7 @@ "width": 800, "minHeight": 400, "minWidth": 400, - "transparent": true + "transparent": false } ] }