Skip to content

Commit

Permalink
add build extension workflow
Browse files Browse the repository at this point in the history
Signed-off-by: ROOMrepair <twekjz@gmail.com>
ROOMrepair committed Jan 10, 2025

Verified

This commit was signed with the committer’s verified signature.
eiri Eric Avdey
1 parent 078bf81 commit 54cdccf
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build-extension

on:
push:
branches:
- main
tags:
- '*'

env:
EXT_NAME: karmada-dashboard

jobs:
build-extension:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install Yarn
run: npm install -g yarn

- name: Install Dependencies
run: cd modules/web && yarn install

- name: Build Extension
run: cd modules/web && yarn build:ext $EXT_NAME

- name: Upload Extension Build
uses: actions/upload-artifact@v4
with:
name: extension
path: modules/web/extensions/karmada-dashboard/dist
2 changes: 1 addition & 1 deletion modules/web/extensions/karmada-dashboard/src/index.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import locales from './locales';

const menus = [
{
parent: 'topbar',
parent: 'global',
name: 'karmada-dashboard',
title: 'Karmada Dashboard',
icon: 'cluster',

0 comments on commit 54cdccf

Please sign in to comment.