diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml new file mode 100644 index 00000000..7cf001bd --- /dev/null +++ b/.github/workflows/test-workflow.yml @@ -0,0 +1,45 @@ +name: release-tauri-app + +on: + pull_request: + +jobs: + create-and-upload-assets: + runs-on: ${{ matrix.platform }} + timeout-minutes: 30 + + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + - name: setup node + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: install rust stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + - name: install webkit2gtk (ubuntu only) + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y webkit2gtk-4.0 + - run: yarn + - name: build finatr for tauri app + run: yarn build + - run: cargo install tauri-bundler --force + - uses: tauri-apps/tauri-action@fix/broken-upload + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + includeDebug: true + tagName: finatr-v__VERSION__ + releaseName: "Release finatr app v__VERSION__" + releaseBody: "See the assets to download this version and install." + releaseDraft: true + prerelease: false