From 9963fcc8b1820e3dada266f74d861b15e4610a8e Mon Sep 17 00:00:00 2001 From: PlOszukiwacz <87446593+PlOszukiwaczDEV@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:37:36 +0100 Subject: [PATCH] it shoudl work --- .github/workflows/buildapp.yml | 100 +++++++++++++++++++++++++++++---- 1 file changed, 89 insertions(+), 11 deletions(-) diff --git a/.github/workflows/buildapp.yml b/.github/workflows/buildapp.yml index c84f000..b71d2ab 100644 --- a/.github/workflows/buildapp.yml +++ b/.github/workflows/buildapp.yml @@ -12,15 +12,17 @@ concurrency: cancel-in-progress: true jobs: - build: + build-linux: name: Build bsky-desktop (Linux) runs-on: ubuntu-latest + env: + ext: ".AppImage" steps: - name: Checkout git repo uses: actions/checkout@v2 - - name: setup node and npm + - name: Setup node and npm uses: actions/setup-node@master with: node-version: 16 @@ -44,15 +46,88 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # - name: Upload Artifact - # if: ${{ inputs.upload_artifact }} - # uses: actions/upload-artifact@v4.4.3 - # with: - # name: bsky-desktop - # path: ${{ github.workspace }}/dist/${{ steps.build_package.outputs.package }} - # if-no-files-found: error + build-windows: + name: Build bsky-desktop (Windows) + runs-on: windows-latest + env: + ext: ".exe" - - name: Create Release + steps: + - name: Checkout git repo + uses: actions/checkout@v2 + + - name: Setup node and npm + uses: actions/setup-node@master + with: + node-version: 16 + + - name: Get npm version action + id: npmv + uses: pchynoweth/action-get-npm-version@1.0.1 + + - name: Install dependencies + run: npm install + + - name: Build (x64) + id: build_package_x64 + run: npm run build -- --arch x64 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Build (arm64) + id: build_package_arm64 + run: npm run build -- --arch arm64 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + build-macos: + name: Build bsky-desktop (macOS) + runs-on: macos-latest + env: + ext: ".dmg" + + steps: + - name: Checkout git repo + uses: actions/checkout@v2 + + - name: Setup node and npm + uses: actions/setup-node@master + with: + node-version: 16 + + - name: Get npm version action + id: npmv + uses: pchynoweth/action-get-npm-version@1.0.1 + + - name: Install dependencies + run: npm install + + - name: Build (x64) + id: build_package_x64 + run: npm run build -- --arch x64 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Build (arm64) + id: build_package_arm64 + run: npm run build -- --arch arm64 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + release: + name: Create Release + runs-on: ubuntu-latest + needs: [build-linux, build-windows, build-macos] + + steps: + - name: Checkout git repo + uses: actions/checkout@v2 + + - name: Get npm version action + id: npmv + uses: pchynoweth/action-get-npm-version@1.0.1 + + - name: Upload Release id: create_release uses: qnblackcat/action-gh-release@master env: @@ -60,4 +135,7 @@ jobs: with: tag_name: "v${{ steps.npmv.outputs.version }}" name: "bsky-desktop v${{ steps.npmv.outputs.version }}" - files: dist/bskyDesktop-* \ No newline at end of file + files: | + dist/linux/*.AppImage + dist/windows/*.exe + dist/macos/*.dmg \ No newline at end of file