Skip to content

Commit

Permalink
Merge pull request #51 from guilhemmarchand/version_116
Browse files Browse the repository at this point in the history
Version 1.1.6
  • Loading branch information
guilhemmarchand authored May 19, 2024
2 parents a2fafae + 3f88516 commit 566800d
Show file tree
Hide file tree
Showing 16 changed files with 1,532 additions and 457 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Python package

on: [push]

jobs:
build_release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- run: echo "job automatically triggered by a ${{ github.event_name }} event."

- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Python requirements
run: |
pip install -r requirements.txt
#
# Build release and run Appinspect
#

- name: Build the release and submit to Splunk Appinspect vetting
env:
SPLUNK_BASE_LOGIN: ${{ vars.SPLUNK_BASE_LOGIN }}
SPLUNK_BASE_PASSWD: ${{ secrets.SPLUNK_BASE_PASSWD }}
run: |
cd build; python3 build.py --keep --submitappinspect --userappinspect "$SPLUNK_BASE_LOGIN" --passappinspect "$SPLUNK_BASE_PASSWD"
id: build_and_submit_appinspect

#
# Archive artifacts
#

- name: Archive Appinspect html report
if: always()
uses: actions/upload-artifact@v3
with:
name: appinspect-report-html
path: output/report_appinspect.html

- name: Archive Appinspect json report
if: always()
uses: actions/upload-artifact@v3
with:
name: appinspect-report-json
path: output/report_appinspect.json

- name: Archive tgz application
if: always()
uses: actions/upload-artifact@v3
with:
path: output/*.tgz

- name: Archive sha256sum
if: always()
uses: actions/upload-artifact@v3
with:
name: release-sha256.txt
path: output/release-sha256.txt

- name: Show output directory content
run: |
ls -ltr output/
- name: Retrieve version number
run: |
echo "VERSION_NUMBER=$(cat output/version.txt)" >> $GITHUB_ENV
- name: Show version number
run: |
echo "Version number is ${{ env.VERSION_NUMBER }}"
- name: Retrieve build number
run: |
echo "BUILD_NUMBER=$(cat output/build.txt)" >> $GITHUB_ENV
- name: Show build number
run: |
echo "Build number is ${{ env.BUILD_NUMBER }}"
#
#
#

- run: echo "End of process, job status ${{ job.status }}."
6 changes: 3 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ sphinx:
# - pdf

# Optionally declare the Python requirements required to build your docs
#python:
# install:
# - requirements: docs/requirements.txt
python:
install:
- requirements: docs/requirements.txt
120 changes: 0 additions & 120 deletions build/appinspect_manual.sh

This file was deleted.

Loading

0 comments on commit 566800d

Please sign in to comment.