-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (36 loc) · 1.08 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
name: Create new Release
on:
push:
tags:
- "*.*.*"
jobs:
build-and-release:
runs-on: ubuntu-20.04
container:
image: node:16.17
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build plugin
run: |
yarn install
yarn build && yarn build-dev
- name: Prepare SBOM generation
run: mkdir boomerang-opentelemetry-sboms
- name: Generate XML SBOM
uses: CycloneDX/gh-node-module-generatebom@master
with:
output: ./boomerang-opentelemetry-sboms/boomerang-opentelemetry-sbom.xml
- name: Generate JSON SBOM
uses: CycloneDX/gh-node-module-generatebom@master
with:
output: ./boomerang-opentelemetry-sboms/boomerang-opentelemetry-sbom.json
json: true
- name: Package SBOMs
run: |
apt-get update && apt-get install zip
zip -r dist/boomerang-opentelemetry-sboms.zip boomerang-opentelemetry-sboms
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*