From 58eed8d5664cd55866ef6978e76a83a3d78dcd85 Mon Sep 17 00:00:00 2001 From: akshun Date: Wed, 11 Jun 2025 18:36:06 +0000 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 55 +++++++++++++++----------------------- 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1ca149b..de0d8d0 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -18,11 +18,9 @@ jobs: - name: Install basic dependencies run: | pacman -Syu --noconfirm - pacman -S --noconfirm git + pacman -S --noconfirm nodejs npm - - name: Clone repo - run: | - git clone https://gitea.akshun-lab.uk/akshun/setup-script.git . + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -38,13 +36,11 @@ jobs: run: | pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py - - name: Push to gitea - run: | - curl -X POST \ - -H "Authorization: token ${{ secrets.TOKEN }}" \ - -H "Content-Type: application/octet-stream" \ - --data-binary @dist/setup \ - "https://gitea.akshun-lab.uk/api/v1/repos/akshun/setup-script/releases" + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: arch-setup + path: dist/setup build-on-debian: runs-on: ubuntu-latest @@ -55,11 +51,9 @@ jobs: - name: Install basic dependencies run: | apt update && apt upgrade -y - apt install -y git + apt install -y git nodejs npm - - name: Clone repo - run: | - git clone https://gitea.akshun-lab.uk/akshun/setup-script.git . + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -74,13 +68,11 @@ jobs: run: | pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py - - name: Push to gitea - run: | - curl -X POST \ - -H "Authorization: token ${{ secrets.TOKEN }}" \ - -H "Content-Type: application/octet-stream" \ - --data-binary @dist/setup \ - "https://gitea.akshun-lab.uk/api/v1/repos/akshun/setup-script/releases" + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: debian-setup + path: dist/setup build-on-fedora: runs-on: ubuntu-latest @@ -91,11 +83,9 @@ jobs: - name: Install basic dependencies run: | dnf up -y - dnf install -y git + dnf install -y git nodejs npm - - name: Clone repo - run: | - git clone https://gitea.akshun-lab.uk/akshun/setup-script.git . + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -109,10 +99,9 @@ jobs: run: | pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py - - name: Push to gitea - run: | - curl -X POST \ - -H "Authorization: token ${{ secrets.TOKEN }}" \ - -H "Content-Type: application/octet-stream" \ - --data-binary @dist/setup \ - "https://gitea.akshun-lab.uk/api/v1/repos/akshun/setup-script/releases" + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: fedora-setup + path: dist/setup +