mirror of
https://github.com/traefik/traefik.git
synced 2025-05-05 15:33:01 +00:00
38 lines
779 B
YAML
38 lines
779 B
YAML
name: Build Web UI
|
|
on:
|
|
workflow_call: {}
|
|
jobs:
|
|
|
|
build-webui:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: webui/.nvmrc
|
|
cache: yarn
|
|
cache-dependency-path: webui/yarn.lock
|
|
|
|
- name: Build webui
|
|
working-directory: ./webui
|
|
run: |
|
|
yarn install
|
|
yarn build
|
|
|
|
- name: Package webui
|
|
run: |
|
|
tar czvf webui.tar.gz ./webui/static/
|
|
|
|
- name: Artifact webui
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: webui.tar.gz
|
|
path: webui.tar.gz
|
|
retention-days: 1
|