From e6a963289dd6a136055461cbdb1b145b412f1acd Mon Sep 17 00:00:00 2001 From: developomp Date: Tue, 8 Feb 2022 13:50:00 +0900 Subject: [PATCH] added publish workflow --- .github/workflows/publish.yml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/publish.yml 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