forked from google/perfetto
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-and-publish-perfetto-ui.yml
More file actions
34 lines (31 loc) · 1.15 KB
/
build-and-publish-perfetto-ui.yml
File metadata and controls
34 lines (31 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build and Publish Perfetto UI
permissions:
contents: write
on:
workflow_dispatch:
push:
branches:
- sokatoa
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Git Short SHA
id: sha
run: echo "sha_short=$(git rev-parse --short=14 HEAD)" >> $GITHUB_OUTPUT
- name: Install Dependencies
run: tools/install-build-deps --ui
- name: Run Build
run: ui/build
- name: Create Archive
run: zip -r perfetto-ui-${{ steps.sha.outputs.sha_short }}.zip ui/out/dist ui/out/dist_version ui/out/tsc ui/src/gen/protos.* -x "ui/out/tsc/node_modules/*" -x "ui/out/dist/*" -x "ui/out/dist_version/frontend_bundle.*"
- name: Publish Archive
uses: 'marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: 'Perfetto UI - ${{ steps.sha.outputs.sha_short }}'
automatic_release_tag: 'perfetto-ui-${{ steps.sha.outputs.sha_short }}'
files: |
perfetto-ui-${{ steps.sha.outputs.sha_short }}.zip