Update spdx.yml #10
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
name: Generate SPDX Document | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
generate-spdx: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 # Make sure to use the latest version | ||
# - name: Install SPDX Tools | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y spdx-tools | ||
- name: Install Python | ||
run: sudo apt-get install -y python3-pip | ||
- name: Install SPDX Tools via pip | ||
run: pip install spdx-tools | ||
run: pip install spdx-doc-generator | ||
- name: Generate SPDX Document | ||
run: | | ||
spdx-doc-generator --format=spdx-json --output=spdx-document.spdx.json . | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: spdx-document | ||
path: spdx-document.spdx.json |