Skip to content

Commit

Permalink
adding file to release
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachChristensen28 committed Oct 6, 2022
1 parent d3ab7b0 commit e77fcba
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,30 @@ on:
- "src/**"
jobs:
release:
name: Create Release
name: Draft Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install -y jq
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Download packaging toolkit
run: wget https://download.splunk.com/misc/packaging-toolkit/splunk-packaging-toolkit-1.0.1.tar.gz
- name: Install packaging toolkit
run: pip install splunk-packaging-toolkit-1.0.1.tar.gz
- name: Package app
id: app
run: |
cd src
slim package -o ~/build/packages SA-CrowdstrikeDevices
echo "::set-output name=app::$(realpath ~/build/packages/*)"
- name: Get version
id: version
run: echo "::set-output name=version::$(cat src/SA-CrowdstrikeDevices/app.manifest | jq -r .info.id.version)"
- name: Create release
- name: Generate release
uses: softprops/action-gh-release@v1
with:
draft: true
name: SA-CrowdstrikeDevices v${{ steps.version.outputs.version }}
tag_name: v${{ steps.version.outputs.version }}
files: ${{ steps.app.outputs.app }}

0 comments on commit e77fcba

Please sign in to comment.