From 612cf4b9ed718d79fe83f83a5a36e8fe2dccdc83 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Mon, 14 Jul 2025 08:12:39 +0530 Subject: [PATCH] i think this might work --- .gitea/workflows/release.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 5b13c92..0041baf 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -3,17 +3,13 @@ name: Multi Distro Build on: workflow_dispatch jobs: - clone-repo: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - arch-build: runs-on: ubuntu-latest needs: clone-repo container: archlinux:latest steps: + - name: Checkout repository + uses: actions/checkout@v4 - name: Install dependencies run: | pacman -Syu --noconfirm @@ -23,16 +19,22 @@ jobs: pip install pyinstaller inquirerpy distro - name: Build binary run: | - pwd && ls pyinstaller --onefile --add-data "data/:data/" setup.py cp dist/setup arch-setup shell: bash + - name: Upload binary + uses: actions/upload-artifact@v4 + with: + name: arch-setup + path: arch-setup debian-build: runs-on: ubuntu-latest needs: clone-repo container: debian:stable-slim steps: + - name: Checkout repository + uses: actions/checkout@v4 - name: Install dependencies run: | apt-get update && apt-get upgrade -y @@ -44,12 +46,19 @@ jobs: pyinstaller --onefile --add-data "data/:data/" setup.py cp dist/setup debian-setup shell: bash + - name: Upload binary + uses: actions/upload-artifact@v4 + with: + name: debian-setup + path: debian-setup fedora-build: runs-on: ubuntu-latest needs: clone-repo container: fedora:latest steps: + - name: Checkout repository + uses: actions/checkout@v4 - name: Install dependencies run: | dnf update -y @@ -60,12 +69,8 @@ jobs: pyinstaller --onefile --add-data "data/:data/" setup.py cp dist/setup fedora-setup shell: bash - - upload-artifacts: - runs-on: ubuntu-latest - needs: [arch-build, debian-build, fedora-build] - steps: - - name: Upload artifacts + - name: Upload binary uses: actions/upload-artifact@v4 with: - path: "*-setup" + name: fedora-setup + path: fedora-setup