change a bunch of things
This commit is contained in:
@@ -18,9 +18,11 @@ jobs:
|
||||
- name: Install basic dependencies
|
||||
run: |
|
||||
pacman -Syu --noconfirm
|
||||
pacman -S --noconfirm nodejs npm
|
||||
pacman -S --noconfirm git
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clone repo
|
||||
run: |
|
||||
git clone https://gitea.akshun-lab.uk/akshun/setup-script.git .
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -36,11 +38,13 @@ jobs:
|
||||
run: |
|
||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: arch-setup
|
||||
path: dist/setup
|
||||
- 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"
|
||||
|
||||
build-on-debian:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -51,9 +55,11 @@ jobs:
|
||||
- name: Install basic dependencies
|
||||
run: |
|
||||
apt update && apt upgrade -y
|
||||
apt install -y git nodejs npm
|
||||
apt install -y git
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clone repo
|
||||
run: |
|
||||
git clone https://gitea.akshun-lab.uk/akshun/setup-script.git .
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -68,11 +74,13 @@ jobs:
|
||||
run: |
|
||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: debian-setup
|
||||
path: dist/setup
|
||||
- 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"
|
||||
|
||||
build-on-fedora:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -85,7 +93,9 @@ jobs:
|
||||
dnf up -y
|
||||
dnf install -y git nodejs npm
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clone repo
|
||||
run: |
|
||||
git clone https://gitea.akshun-lab.uk/akshun/setup-script.git .
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -99,9 +109,10 @@ jobs:
|
||||
run: |
|
||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: fedora-setup
|
||||
path: dist/setup
|
||||
|
||||
- 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"
|
||||
|
||||
Reference in New Issue
Block a user