Skip to content

Commit

Permalink
Moves package and publish script code into Makefile (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Kasaboski <[email protected]>
  • Loading branch information
markkasaboski and Mark Kasaboski authored Oct 24, 2024
1 parent ebddaba commit d696134
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
with:
name: splunk-app

- name: Publish
- name: Package and Publish
run: |
./publish
make package
make publish
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ clean:
.PHONY: package
package:
-@rm flare_splunk_integration.tar.gz
@echo "Packaging app..."
@package
@echo "Done."
COPYFILE_DISABLE=1 tar --format ustar -cvzf "flare_splunk_integration.tar.gz" "flare_splunk_integration"

# This will not work until we get an APPID - need to submit in Splunkbase UI first.
.PHONY: publish
publish: flare_splunk_integration.tar.gz
curl -u flaresystems --request POST https://splunkbase.splunk.com/api/v1/app/<APPID>/new_release/ -F "files[]=@./flare_splunk_integration.tar.gz" -F "filename=flare_splunk_integration.tar.gz" -F "cim_versions=4.9,4.7" -F "splunk_versions=9.3" -F "visibility=true"

# A manual review from the Splunk team will be required to know if we need to fix any of these tag warnings.
.PHONY: validate
Expand Down
8 changes: 0 additions & 8 deletions package

This file was deleted.

7 changes: 0 additions & 7 deletions publish

This file was deleted.

0 comments on commit d696134

Please sign in to comment.