Skip to content

Commit

Permalink
feat: Github CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfex4936 committed Jun 19, 2023
1 parent 9b172f0 commit 85fa980
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion libra_api/google-clone/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"width": 800,
"minHeight": 400,
"minWidth": 400,
"transparent": true
"transparent": false
}
]
}
Expand Down

1 comment on commit 85fa980

@vercel
Copy link

@vercel Vercel bot commented on 85fa980 Jun 19, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

ajou-libra – ./

ajou-libra-git-main-alfex4936.vercel.app
ajou-libra-alfex4936.vercel.app
ajou-libra.vercel.app

Please sign in to comment.