Skip to content

Commit 233eee9

Browse files
committed
add ui back to release workflow
1 parent 5a50adf commit 233eee9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,35 @@ jobs:
4545
PUBLISH_OWNER: ${{ secrets.PUBLISH_OWNER }}
4646
run: |
4747
./ci/publish.sh ./dist --repo "$PUBLISH_REPO" --owner "$PUBLISH_OWNER"
48+
49+
ui:
50+
needs: [goreleaser]
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
58+
- uses: actions/setup-node@v4
59+
with:
60+
node-version: 18
61+
- name: Install node.js dependencies
62+
run: |
63+
cd ./ui
64+
npm install npm -g
65+
npm ci --no-optional
66+
67+
- name: Build and zip UI-Plugin
68+
run : |
69+
cd ./ui
70+
UI_VERSION=$(jq -r .version package.json)
71+
npm run build-ci
72+
cd dist/apps/tedge-container-plugin-ui
73+
zip -r -q "../../../../dist/tedge-container-plugin-ui_${UI_VERSION}.zip" *
74+
75+
- name: Upload
76+
env:
77+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
run: |
79+
gh release upload "${{ github.ref_name }}" dist/tedge-container-plugin-ui_*.zip

0 commit comments

Comments
 (0)