-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (32 loc) · 924 Bytes
/
Copy pathrelease.yml
File metadata and controls
39 lines (32 loc) · 924 Bytes
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
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install syft
uses: anchore/sbom-action/download-syft@v0
- name: Generate Go SBOM
run: syft dir:. --exclude ./worker/python -o cyclonedx-json=sbom-go.cdx.json
- name: Generate Python SBOM
run: syft dir:worker/python -o cyclonedx-json=sbom-python.cdx.json
- name: Generate Release Notes and Create Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
draft: false
prerelease: ${{ contains(github.ref, '-') }}
files: |
sbom-go.cdx.json
sbom-python.cdx.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}