From 6daa8ff5202d930daf697e06d72513dd8f4f9ecb Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Tue, 18 Jul 2023 14:19:22 -0700 Subject: [PATCH] Allow uploading nightlies --- .gitea/workflows/compile.yaml | 8 ++++++-- flat-manager | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) create mode 160000 flat-manager diff --git a/.gitea/workflows/compile.yaml b/.gitea/workflows/compile.yaml index 3e70dc5..c04839c 100644 --- a/.gitea/workflows/compile.yaml +++ b/.gitea/workflows/compile.yaml @@ -10,12 +10,16 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - name: Install flatpak and flatpak-builder - run: apt update && apt install -y flatpak-builder flatpak + - name: Install system dependencies + run: apt update && apt install -y flatpak-builder flatpak python3-aiohttp python3-tenacity libostree-1-1 python3-gi gir1.2-ostree-1.0 wget - name: Add flathub repo and install flatpak dependencies run: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && flatpak install -y --noninteractive org.freedesktop.Platform//22.08 org.freedesktop.Sdk//22.08 - name: Build project run: flatpak-builder build-flatpak com.experimentalcraft.NekoPlayer.yml --repo ./flatpak-repo + - name: Download uploading script + run: wget https://raw.githubusercontent.com/flatpak/flat-manager/9401efbdc0d6bd489507d8401c567ba219d735d5/flat-manager-client -O flat-manager-client && chmod +x flat-manager-client + - name: Upload to flatpak repo + run: export REPO_TOKEN=$(echo -n "$FLATPAK_TOKEN" | cargo run --bin gentoken -- --base64 --secret-file - --name nightly-token) && ./flat-manager-client push --commit $(./flat-manager-client create https://flatpak.complecwaft.com nightly) ./flatpak-repo/ #- uses: actions/upload-artifact@v3 # with: # name: build diff --git a/flat-manager b/flat-manager new file mode 160000 index 0000000..52454dc --- /dev/null +++ b/flat-manager @@ -0,0 +1 @@ +Subproject commit 52454dc018218286e4ef8e79b85feb8f426dfd31