From 8eb8c68509544d99db29a93925ccd78a61bc7db3 Mon Sep 17 00:00:00 2001 From: Tanner Sommers Date: Mon, 28 Apr 2025 21:29:17 +0000 Subject: [PATCH] Update .github/workflows/deploy.yml --- .github/workflows/deploy.yml | 49 +++++++++++++++++------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 07b9a15..291e053 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,46 +1,45 @@ name: Release FanslySync - on: workflow_dispatch: - inputs: - app-slug: - type: string - description: Slug of the application - required: true concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true env: - CN_APP_SLUG: ${{ github.event.inputs.app-slug }} + CN_APPLICATION: "fansly-creator-bot/fansly-sync" jobs: draft: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - name: create draft release - uses: crabnebula-dev/cloud-release@v0.1.0 + uses: crabnebula-dev/cloud-release@v0 with: - command: release draft ${{ env.CN_APP_SLUG }} --framework tauri + command: release draft ${{ env.CN_APPLICATION }} --framework tauri api-key: ${{ secrets.CN_API_KEY }} - build: + build_desktop: needs: draft strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest] + include: + - os: ubuntu-22.04 + - os: windows runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "lts/*" + - name: Install stable toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: @@ -48,37 +47,35 @@ jobs: cache: true - name: install Linux dependencies - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-22.04' run: | sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + sudo apt-get install -y webkit2gtk-4.1 - - name: build FanslySync app for Windows, Linux + - name: build Tauri app for Windows, Linux if: matrix.os != 'macos-latest' run: | - npm i - npm run tauri build + npm ci + npm exec tauri build env: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - name: upload assets - uses: crabnebula-dev/cloud-release@v0.1.0 + uses: crabnebula-dev/cloud-release@v0 with: - command: release upload ${{ env.CN_APP_SLUG }} --framework tauri + command: release upload ${{ env.CN_APPLICATION }} --framework tauri api-key: ${{ secrets.CN_API_KEY }} - path: ./src-tauri publish: - needs: build - - runs-on: ubuntu-latest + needs: [build_desktop] + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: publish release - uses: crabnebula-dev/cloud-release@v0.1.0 + uses: crabnebula-dev/cloud-release@v0 with: - command: release publish ${{ env.CN_APP_SLUG }} --framework tauri + command: release publish ${{ env.CN_APPLICATION }} --framework tauri api-key: ${{ secrets.CN_API_KEY }}