From 10c35cc91066dd7dcf78ebe8789edb833ef9cf84 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Wed, 19 Jul 2023 07:17:13 -0700 Subject: [PATCH] Update workflow --- .gitea/workflows/compile.yaml | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/compile.yaml b/.gitea/workflows/compile.yaml index a32be44..dea35b2 100644 --- a/.gitea/workflows/compile.yaml +++ b/.gitea/workflows/compile.yaml @@ -10,42 +10,16 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - name: Restore system dependencies - uses: actions/cache/restore@v3 - id: cache-system - with: - key: cache-system - path: /var/cache/apt - - name: Restore flatpak dependencies - uses: actions/cache/restore@v3 - id: cache-flatpak - with: - key: cache-flatpak - path: /var/lib/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: Save system dependencies - uses: actions/cache/save@v3 - if: always() - id: cache-system - with: - key: cache-system - path: /var/cache/apt - name: Add flathub repo and install flatpak dependencies run: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - name: Build project - run: flatpak-builder --install-deps-from flathub build-flatpak com.experimentalcraft.NekoPlayer.yml --repo ./flatpak-repo - - name: Save flatpak dependencies - uses: actions/cache/save@v3 - id: cache-flatpak - if: always() - with: - key: cache-flatpak - path: /var/lib/flatpak/ + run: flatpak-builder --install-deps-from flathub build-flatpak com.experimentalcraft.NekoPlayer.yml --repo ./flatpak-rep< - 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: ./flat-manager-client -v --token $FLATPAK_TOKEN push --commit --publish $(./flat-manager-client -v --token $FLATPAK_TOKEN create http://192.168.122.249:8080 nightly) ./flatpak-repo/ + run: ./flat-manager-client -v --token $FLATPAK_TOKEN push --commit --publish $(./flat-manager-client -v --token $FLATPAK_TOKEN create http://192.168.122.249:8080 beta) ./flatpak-repo/ env: FLATPAK_TOKEN: ${{ secrets.FLATPAK_TOKEN }} #- uses: actions/upload-artifact@v3