Skip to content

Commit cbbd0d2

Browse files
committed
Merge branch 'main' of https://github.com/Mohmn/smearshot into main
2 parents 340609b + 8a996ab commit cbbd0d2

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/create-bundle.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
workflow_dispatch:
7+
8+
jobs:
9+
release:
10+
permissions:
11+
contents: write
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
platform: [macos-latest, ubuntu-20.04, windows-latest]
16+
runs-on: ${{ matrix.platform }}
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v3
21+
22+
- name: Install dependencies (ubuntu only)
23+
if: matrix.platform == 'ubuntu-20.04'
24+
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
28+
29+
- name: Rust setup
30+
uses: dtolnay/rust-toolchain@stable
31+
32+
- name: Rust cache
33+
uses: swatinem/rust-cache@v2
34+
with:
35+
workspaces: './src-tauri -> target'
36+
37+
- name: Sync node version and setup cache
38+
uses: actions/setup-node@v3
39+
with:
40+
node-version: 'lts/*'
41+
cache: 'npm' # Set this to npm, yarn or pnpm.
42+
43+
- name: Install frontend dependencies
44+
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
45+
run: npm install # Change this to npm, yarn or pnpm.
46+
47+
- name: Build the app
48+
uses: tauri-apps/tauri-action@v0
49+
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
with:
53+
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
54+
releaseName: 'App Name v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
55+
releaseBody: 'See the assets to download and install this version.'
56+
releaseDraft: true
57+
prerelease: false

0 commit comments

Comments
 (0)