mirror of
https://github.com/unraid/api.git
synced 2026-01-02 06:30:02 -06:00
refactor: unraid ui cleanup and migration (#998)
Co-authored-by: Eli Bosley <ekbosley@gmail.com> Co-authored-by: Pujit Mehrotra <pujit@lime-technology.com> Co-authored-by: mdatelle <mike@datelle.net> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zack Spear <zackspear@users.noreply.github.com>
This commit is contained in:
51
.github/workflows/main.yml
vendored
51
.github/workflows/main.yml
vendored
@@ -101,7 +101,45 @@ jobs:
|
||||
name: unraid-api
|
||||
path: ${{ github.workspace }}/api/deploy/release/*.tgz
|
||||
|
||||
build-unraid-ui:
|
||||
name: Build Unraid UI Library
|
||||
defaults:
|
||||
run:
|
||||
working-directory: unraid-ui
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
cache: "npm"
|
||||
cache-dependency-path: |
|
||||
unraid-ui/package-lock.json
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Make Built Node Artifact
|
||||
run: |
|
||||
mkdir unraid-ui-dist
|
||||
mv dist/ unraid-ui-dist/dist/
|
||||
mv package.json unraid-ui-dist/package.json
|
||||
ls unraid-ui-dist
|
||||
|
||||
- name: Upload Artifact to Github
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: unraid-ui
|
||||
path: unraid-ui/unraid-ui-dist
|
||||
|
||||
build-web:
|
||||
needs: [build-unraid-ui]
|
||||
name: Build Web App
|
||||
environment:
|
||||
name: production
|
||||
@@ -126,9 +164,20 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
cache: "npm"
|
||||
cache-dependency-path: "web/package-lock.json"
|
||||
cache-dependency-path: |
|
||||
web/package-lock.json
|
||||
node-version-file: "web/.nvmrc"
|
||||
|
||||
- name: Remove Existing Unraid UI folder
|
||||
run: |
|
||||
rm -r ../unraid-ui
|
||||
|
||||
- name: Download Artifact for Unraid UI
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: unraid-ui
|
||||
path: unraid-ui
|
||||
|
||||
- name: Installing node deps
|
||||
run: npm install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user