fix: CI workflow use Gitea checkout action, unbundled only
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
81a38d6824
commit
2e0b78ef42
@ -11,15 +11,15 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: https://git.tx1138.com/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Build backend (release)
|
- name: Build backend
|
||||||
run: |
|
run: |
|
||||||
source ~/.cargo/env 2>/dev/null || true
|
source $HOME/.cargo/env 2>/dev/null || true
|
||||||
cargo build --release --manifest-path core/Cargo.toml
|
cargo build --release --manifest-path core/Cargo.toml
|
||||||
|
sudo cp core/target/release/archipelago /usr/local/bin/archipelago
|
||||||
- name: Install backend binary
|
|
||||||
run: sudo cp core/target/release/archipelago /usr/local/bin/archipelago
|
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: cd neode-ui && npm ci && npm run build
|
run: cd neode-ui && npm ci && npm run build
|
||||||
@ -28,15 +28,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd image-recipe
|
cd image-recipe
|
||||||
sudo UNBUNDLED=1 DEV_SERVER=localhost BUILD_FROM_SOURCE=0 ./build-auto-installer-iso.sh
|
sudo UNBUNDLED=1 DEV_SERVER=localhost BUILD_FROM_SOURCE=0 ./build-auto-installer-iso.sh
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
|
|
||||||
- name: Copy to Builds folder
|
- name: Copy to Builds
|
||||||
run: |
|
run: |
|
||||||
ISO=$(ls image-recipe/results/archipelago-installer-unbundled-*.iso 2>/dev/null | head -1)
|
ISO=$(ls image-recipe/results/archipelago-installer-unbundled-*.iso 2>/dev/null | head -1)
|
||||||
if [ -n "$ISO" ]; then
|
if [ -n "$ISO" ]; then
|
||||||
DATE=$(date +%Y%m%d-%H%M)
|
DATE=$(date +%Y%m%d-%H%M)
|
||||||
sudo cp "$ISO" "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
sudo cp "$ISO" "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
||||||
sudo chown 1000:1000 "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
sudo chown 1000:1000 "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
||||||
echo "ISO copied: archipelago-unbundled-${DATE}.iso"
|
echo "ISO: archipelago-unbundled-${DATE}.iso"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user