diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 2a3446c..aec4d3f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,9 +1,7 @@ name: "Build APK" on: - push: - branches: ["main"] - tags: ["*"] + workflow_call: workflow_dispatch: jobs: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..15cd41a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: "Build Artifacts" +on: + workflow_dispatch: + push: + branches: ["main"] + tags: ["*"] +jobs: + exe: + uses: ./.github/workflows/build-exe.yml + + apk: + uses: ./.github/workflows/build-apk.yml + + flatpak: + uses: ./.github/workflows/build-flatpak.yml + + publish: + needs: [exe, apk, flatpak] + runs-on: ubuntu-latest + steps: + - run: echo "all done" \ No newline at end of file diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml index ba5779a..5b2e416 100644 --- a/.github/workflows/flatpak.yml +++ b/.github/workflows/flatpak.yml @@ -1,9 +1,7 @@ name: "Build Flatpaks" on: - push: - branches: ["main"] - tags: ["*"] + workflow_call: workflow_dispatch: jobs: @@ -30,11 +28,8 @@ jobs: - name: Build app run: nix build .#flatpak - - name: Rename flatpak - run: mv result/nexus.federated.Nexus.flatpak nexus.federated.Nexus-${{ matrix.arch }}.flatpak - - name: Upload installer artifact uses: actions/upload-artifact@v7 with: - path: nexus.federated.Nexus-${{ matrix.arch }}.flatpak + path: result/nexus.federated.Nexus.flatpak archive: false \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 58ca8d1..7d98290 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,9 +1,7 @@ name: "Build EXE" on: - push: - branches: ["main"] - tags: ["*"] + workflow_call: workflow_dispatch: jobs: