Update .gitea/workflows/build.yml
This commit is contained in:
@@ -18,11 +18,9 @@ jobs:
|
|||||||
- name: Install basic dependencies
|
- name: Install basic dependencies
|
||||||
run: |
|
run: |
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
pacman -S --noconfirm git
|
pacman -S --noconfirm nodejs npm
|
||||||
|
|
||||||
- name: Clone repo
|
- uses: actions/checkout@v4
|
||||||
run: |
|
|
||||||
git clone https://gitea.akshun-lab.uk/akshun/setup-script.git .
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -38,13 +36,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||||
|
|
||||||
- name: Push to gitea
|
- name: Upload artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v3
|
||||||
curl -X POST \
|
with:
|
||||||
-H "Authorization: token ${{ secrets.TOKEN }}" \
|
name: arch-setup
|
||||||
-H "Content-Type: application/octet-stream" \
|
path: dist/setup
|
||||||
--data-binary @dist/setup \
|
|
||||||
"https://gitea.akshun-lab.uk/api/v1/repos/akshun/setup-script/releases"
|
|
||||||
|
|
||||||
build-on-debian:
|
build-on-debian:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -55,11 +51,9 @@ jobs:
|
|||||||
- name: Install basic dependencies
|
- name: Install basic dependencies
|
||||||
run: |
|
run: |
|
||||||
apt update && apt upgrade -y
|
apt update && apt upgrade -y
|
||||||
apt install -y git
|
apt install -y git nodejs npm
|
||||||
|
|
||||||
- name: Clone repo
|
- uses: actions/checkout@v4
|
||||||
run: |
|
|
||||||
git clone https://gitea.akshun-lab.uk/akshun/setup-script.git .
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -74,13 +68,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||||
|
|
||||||
- name: Push to gitea
|
- name: Upload artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v3
|
||||||
curl -X POST \
|
with:
|
||||||
-H "Authorization: token ${{ secrets.TOKEN }}" \
|
name: debian-setup
|
||||||
-H "Content-Type: application/octet-stream" \
|
path: dist/setup
|
||||||
--data-binary @dist/setup \
|
|
||||||
"https://gitea.akshun-lab.uk/api/v1/repos/akshun/setup-script/releases"
|
|
||||||
|
|
||||||
build-on-fedora:
|
build-on-fedora:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -91,11 +83,9 @@ jobs:
|
|||||||
- name: Install basic dependencies
|
- name: Install basic dependencies
|
||||||
run: |
|
run: |
|
||||||
dnf up -y
|
dnf up -y
|
||||||
dnf install -y git
|
dnf install -y git nodejs npm
|
||||||
|
|
||||||
- name: Clone repo
|
- uses: actions/checkout@v4
|
||||||
run: |
|
|
||||||
git clone https://gitea.akshun-lab.uk/akshun/setup-script.git .
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -109,10 +99,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||||
|
|
||||||
- name: Push to gitea
|
- name: Upload artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v3
|
||||||
curl -X POST \
|
with:
|
||||||
-H "Authorization: token ${{ secrets.TOKEN }}" \
|
name: fedora-setup
|
||||||
-H "Content-Type: application/octet-stream" \
|
path: dist/setup
|
||||||
--data-binary @dist/setup \
|
|
||||||
"https://gitea.akshun-lab.uk/api/v1/repos/akshun/setup-script/releases"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user