mirror of
https://github.com/felixrieseberg/windows95.git
synced 2026-05-10 00:31:58 +00:00
Fetch disk image from private GitHub release; harden download scripts
OneDrive 1drv.ms links no longer serve raw bytes to headless clients after the SPO migration. The disk image now lives as a release asset on a private repo and is fetched via 'gh release download' using DISK_REPO + DISK_TAG vars and an IMAGES_REPO_TOKEN secret. Scripts fail fast on missing env, bad zip, or missing windows95.img.
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -71,12 +71,16 @@ jobs:
|
||||
run: tools/download-disk.ps1
|
||||
if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
DISK_URL: ${{ secrets.DISK_URL }}
|
||||
DISK_REPO: ${{ vars.DISK_REPO }}
|
||||
DISK_TAG: ${{ vars.DISK_TAG }}
|
||||
GH_TOKEN: ${{ secrets.IMAGES_REPO_TOKEN }}
|
||||
- name: Download disk image (sh)
|
||||
run: chmod +x tools/download-disk.sh && ./tools/download-disk.sh
|
||||
if: matrix.os != 'windows-latest' && startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
DISK_URL: ${{ secrets.DISK_URL }}
|
||||
DISK_REPO: ${{ vars.DISK_REPO }}
|
||||
DISK_TAG: ${{ vars.DISK_TAG }}
|
||||
GH_TOKEN: ${{ secrets.IMAGES_REPO_TOKEN }}
|
||||
- name: Install
|
||||
run: npm ci
|
||||
- name: Make
|
||||
|
||||
Reference in New Issue
Block a user