diff --git a/.github/workflows/release-appimage.yml b/.github/workflows/release-appimage.yml index ce9e2b1..21f31bf 100644 --- a/.github/workflows/release-appimage.yml +++ b/.github/workflows/release-appimage.yml @@ -14,15 +14,21 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: - submodules: true + fetch-depth: 0 + submodules: recursive + + - name: Initialize submodules + run: git submodule update --init --recursive - name: Build AppImage run: | - docker compose -f packaging/docker-compose.appimage.yml up --build + docker compose -f packaging/docker-compose.appimage.yml run --rm --build jctoolkit-appimage - name: Create draft release and upload AppImage env: GH_TOKEN: ${{ github.token }} run: | + APPIMAGE="${{ github.workspace }}/dist/JCToolKit-x86_64.AppImage" + test -f "$APPIMAGE" || { echo "AppImage not found at $APPIMAGE"; ls -la dist/ 2>/dev/null || true; exit 1; } gh release create "${{ github.event.inputs.tag }}" --draft --title "${{ github.event.inputs.tag }}" || true - gh release upload "${{ github.event.inputs.tag }}" dist/JCToolKit-x86_64.AppImage --clobber + gh release upload "${{ github.event.inputs.tag }}" "$APPIMAGE" --clobber