diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5028980..86f4d92 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,21 +56,3 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - - - uses: actions/upload-artifact@v2 - if: matrix.platform == 'ubuntu-latest' - with: - name: liquidlauncher-linux - path: ./src-tauri/target/release/bundle/appimage/liquidlauncher_**.AppImage.* - - - uses: actions/upload-artifact@v2 - if: matrix.platform == 'windows-latest' - with: - name: liquidlauncher-windows - path: ./src-tauri/target/release/bundle/msi/liquidlauncher_**.msi.* - - - uses: actions/upload-artifact@v2 - if: matrix.platform == 'macos-latest' - with: - name: liquidlauncher-macos - path: ./src-tauri/target/release/bundle/macos/liquidlauncher.app.tar.* diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..74674f5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,48 @@ +name: 'publish' + +on: + push: + branches: + - tauri_release + +jobs: + publish-tauri: + permissions: + contents: write + strategy: + fail-fast: false + matrix: + platform: [macos-latest, ubuntu-latest, windows-latest] + + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v4 + + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: 21 + + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable + + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf + + - name: install frontend dependencies + run: yarn install # change this to npm or pnpm depending on which one you use + + - uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} + TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} + with: + tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version + releaseName: 'LiquidLauncher v__VERSION__' + releaseBody: 'See the assets to download this version and install.' + releaseDraft: true + prerelease: false \ No newline at end of file