mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
1ef4a3c092
to some confusing indirection
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
# This workflow performs a simple build action.
|
|
# It is intentionally separate from the appinspect
|
|
# workflow to provide granular feedback and insight
|
|
# into when a build passes but an appinspect fails.
|
|
name: build
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
push:
|
|
branches:
|
|
- develop
|
|
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repository code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: 3.14
|
|
architecture: x64
|
|
|
|
- name: Install contentctl-ng
|
|
shell: bash
|
|
run: |
|
|
echo "- Build Tool Version - $(cat requirements.txt)"
|
|
pip install -r requirements.txt
|
|
|
|
|
|
- name: Run a contentctl-ng build
|
|
run: |
|
|
contentctl-ng build
|
|
|
|
# Store build artifact
|
|
- name: store_artifacts
|
|
if: always()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: content-latest
|
|
path: |
|
|
dist/*.tar.gz
|