From 72511854a518f29b801b6a147e404ec1705064e2 Mon Sep 17 00:00:00 2001 From: Yogesh Kumar Date: Mon, 26 Aug 2024 19:05:53 +0300 Subject: [PATCH] add github workflow --- .github/workflows/release.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..9b86d40 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,32 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' # This triggers the workflow for any version tag + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Install dependencies + run: npm install + + - name: Build Tauri app + run: npm run tauri build + + - name: Upload release assets + uses: softprops/action-gh-release@v1 + with: + files: src-tauri/target/release/bundle/dmg/*.dmg + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file