-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release workflow to publish UI artifacts
Signed-off-by: Yuri Shkuro <github@ysh.us>
- Loading branch information
1 parent
860e3bb
commit 15017d5
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |