diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be0e009..9578200 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,75 +7,32 @@ on: jobs: build: name: Build - permissions: - contents: write - strategy: - fail-fast: false - matrix: - platform: [ macos-latest, ubuntu-20.04, windows-latest ] - runs-on: ${{ matrix.platform }} + runs-on: windows-latest env: TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' - # You can remove libayatana-appindicator3-dev if you don't use the system tray feature. - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev - - - name: Rust setup - uses: dtolnay/rust-toolchain@stable + - uses: actions/checkout@v2 - - name: Rust cache - uses: swatinem/rust-cache@v2 + - name: setup node + uses: actions/setup-node@v1 with: - workspaces: './src-tauri -> target' + node-version: 16 - - name: Sync node version and setup cache - uses: actions/setup-node@v3 + - name: install Rust stable + uses: actions-rs/toolchain@v1 with: - node-version: 'lts/*' - cache: 'yarn' # Set this to npm, yarn or pnpm. - - - name: Install frontend dependencies - # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. - run: yarn install # Change this to npm, yarn or pnpm. - - - name: Build the app - uses: tauri-apps/tauri-action@v0 - - - name: change updater signature - shell: bash - run: | - cd src-tauri/target/release/bundle - ls + toolchain: stable - - name: upload artifact - if: matrix.platform == 'macos-latest' - uses: actions/upload-artifact@v3 - with: - name: bundles - path: src-tauri/target/release/bundle/macos + - name: install app dependencies and build it + run: yarn && yarn tauri:build - name: upload artifact - if: matrix.platform == 'windows-latest' uses: actions/upload-artifact@v3 with: name: bundles path: src-tauri/target/release/bundle/msi - - name: upload artifact - if: matrix.platform == 'ubuntu-20.04' - uses: actions/upload-artifact@v3 - with: - name: bundles - path: src-tauri/target/release/bundle/deb - release: name: Release runs-on: ubuntu-latest