diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7ed259e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,45 @@ +name: "publish" + +on: workflow_dispatch + +jobs: + publish-tauri: + strategy: + matrix: + platform: [macos-latest, ubuntu-latest, windows-latest] + + runs-on: ${{ matrix.platform }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup nodejs + uses: actions/setup-node@v2 + with: + node-version: 16 + cache: yarn + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Install webkit2gtk + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y webkit2gtk-4.0 + + - name: Install dependencies & Build + run: yarn && yarn build + + # the action automatically replaces __VERSION__ with the app version + - name: Create Release + uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tagName: v__VERSION__ + releaseName: "WBM Installer v__VERSION__" + releaseBody: + releaseDraft: true