Skip to content

Commit

Permalink
Add release workflow to publish UI artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Jan 16, 2023
1 parent 860e3bb commit 15017d5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: '16'
- 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@2728235f7dc9ff598bd86ce3c274b74f802d2208
with:
file: 'assets.tar.gz'
overwrite: true
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
if: steps.package-artifacts.outcome == 'success'

0 comments on commit 15017d5

Please sign in to comment.