forked from jaegertracing/jaeger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.17 KB
/
release.yml
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
35
36
37
38
39
40
41
name: Publish release
on:
release:
types:
- published
# See https://github.com/jaegertracing/jaeger/issues/4017
# and https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions:
deployments: write
contents: write
jobs:
publish-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
cache: yarn
node-version: '20'
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
id: yarn-build
- name: Package artifacts
id: package-artifacts
run: tar -czvf ./assets.tar.gz --strip-components=3 packages/jaeger-ui/build/
if: steps.yarn-build.outcome == 'success'
- name: Upload artifacts
uses: svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df
with:
file: 'assets.tar.gz'
overwrite: true
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
if: steps.package-artifacts.outcome == 'success'