diff --git a/.github/workflows/gen5.yml b/.github/workflows/gen5.yml index 5143115..88c926f 100644 --- a/.github/workflows/gen5.yml +++ b/.github/workflows/gen5.yml @@ -95,19 +95,6 @@ jobs: name: app-bundles path: ${{ env.OUT_DIR }}/*.AppBundle - - name: Generate metadata - run: | - set -x - wget "https://huggingface.co/datasets/pkgforge/pkgcache/resolve/main/FLATPAK_APPSTREAM.xml" - chmod +x ${{ github.workspace }}/.local/bin/appstream-helper - ${{ github.workspace }}/.local/bin/appstream-helper --components-xml ./FLATPAK_APPSTREAM.xml --input-dir "${{ github.workspace }}" --output-dir "${{ github.workspace }}/APPBUNDLES_META" --output-file "${{ github.workspace }}/APPBUNDLES_META/metadata.json" --download-url-prefix "https://github.com/xplshn/AppBundleHUB/releases/download/${{ env.TAG_NAME }}/" --metadata-prefix "https://github.com/xplshn/AppBundleHUB/releases/download/latest_metadata/" - - - name: Upload metadata artifact - uses: actions/upload-artifact@v4 - with: - name: metadata - path: ${{ github.workspace }}/APPBUNDLES_META/* - publish_appbundles: name: Publish AppBundles runs-on: ubuntu-latest @@ -130,6 +117,19 @@ jobs: name: appstream-helper path: ${{ github.workspace }}/.local/bin + - name: Generate metadata + run: | + set -x + wget "https://huggingface.co/datasets/pkgforge/pkgcache/resolve/main/FLATPAK_APPSTREAM.xml" + chmod +x ${{ github.workspace }}/.local/bin/appstream-helper + ${{ github.workspace }}/.local/bin/appstream-helper --components-xml ./FLATPAK_APPSTREAM.xml --input-dir "${{ github.workspace }}" --output-dir "${{ github.workspace }}/APPBUNDLES_META" --output-file "${{ github.workspace }}/APPBUNDLES_META/metadata.json" --download-url-prefix "https://github.com/xplshn/AppBundleHUB/releases/download/${{ env.TAG_NAME }}/" --metadata-prefix "https://github.com/xplshn/AppBundleHUB/releases/download/latest_metadata/" + + - name: Upload metadata artifact + uses: actions/upload-artifact@v4 + with: + name: metadata + path: ${{ github.workspace }}/APPBUNDLES_META/* + - name: Manage Tags if: ${{ github.event.inputs.release == 'true' }} run: |