Skip to content

Commit 2bdd2bb

Browse files
committed
Prepare UI Build Workflow
1 parent 6fb4233 commit 2bdd2bb

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/perfetto-ui.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Perfetto UI
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
paths:
9+
- 'ui/**'
10+
branches:
11+
- reuse_timeline
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Set Git Short SHA
20+
id: sha
21+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
22+
- name: Install Dependencies
23+
run: tools/install-build-deps --ui
24+
- name: Run build
25+
run: ui/build
26+
- name: Create archive
27+
run: zip -r perfetto-ui-${{ steps.sha.outputs.sha_short }}.zip ui/wasm ui/css ui/out/tsc -x "ui/out/tsc/node_modules/*"
28+
- name: Release Perfetto UI
29+
uses: 'marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1'
30+
with:
31+
repo_token: '${{ secrets.GITHUB_TOKEN }}'
32+
title: 'Perfetto UI - ${{ steps.sha.outputs.sha_short }}'
33+
automatic_release_tag: 'perfetto-ui-${{ steps.sha.outputs.sha_short }}'
34+
files: |
35+
perfetto-ui-${{ steps.sha.outputs.sha_short }}.zip

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"uuid": "^8.3.2"
3434
},
3535
"files": [
36+
"css",
3637
"out/tsc",
3738
"src",
38-
"css",
3939
"wasm"
4040
],
4141
"style": "css/perfetto.css",

0 commit comments

Comments
 (0)