Update main.yml #2
This file contains hidden or 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: build-test-release | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Create subfolder | |
| run: mkdir my-package | |
| - name: Install UCC | |
| run: | | |
| pip install splunk-add-on-ucc-framework | |
| pip install splunk-packaging-toolkit | |
| - name: Build an app using UCC | |
| run: ucc-gen build | |
| - name: Create tmp folder | |
| run: mkdir app-dir | |
| - name: Create package | |
| run: ucc-gen package --path output/devtutorial_conf24 -o app-dir/ | |
| - name: Upload package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: my-package | |
| path: app-dir/ | |
| run-appinspect-api: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: my-package | |
| path: app-dir/ | |
| - name: appinspect-api | |
| uses: splunk/[email protected] | |
| with: | |
| username: ${{ secrets.SPL_COM_USER }} | |
| password: ${{ secrets.SPL_COM_PASSWORD }} | |
| app_path: app-dir/ | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: appinspect-api-html-report | |
| path: AppInspect_response.html |