diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 901fa91..067e063 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -5,8 +5,6 @@ on: branches: - release -# This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release. - jobs: publish-tauri: permissions: @@ -15,9 +13,9 @@ jobs: fail-fast: false matrix: include: - - platform: 'macos-latest' # for Arm based macs (M1 and above). + - platform: 'macos-latest' # for Arm-based Macs (M1 and above). args: '--target aarch64-apple-darwin' - - platform: 'macos-latest' # for Intel based macs. + - platform: 'macos-latest' # for Intel-based Macs. args: '--target x86_64-apple-darwin' - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04. args: '' @@ -36,7 +34,7 @@ jobs: - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: - # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. + # Those targets are only used on macOS runners so it's in an `if` to slightly speed up Windows and Linux builds. targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - name: install dependencies (ubuntu only) @@ -50,13 +48,23 @@ jobs: - name: install frontend dependencies run: yarn install # change this to npm, pnpm or bun depending on which one you use. - - uses: tauri-apps/tauri-action@v0 + - name: build tauri app + uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. + tagName: app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version. releaseName: 'App v__VERSION__' releaseBody: 'See the assets to download this version and install.' releaseDraft: true prerelease: false args: ${{ matrix.args }} + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: app-build-${{ matrix.platform }} + path: | + src-tauri/target/release/your-app-name.exe + src-tauri/target/release/your-app-name.dmg + src-tauri/target/release/your-app-name.AppImage