Skip to content

Commit

Permalink
Fixes (fingers crossed) publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kasaboski committed Nov 16, 2024
1 parent 1fe2c31 commit af7309f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Download Build Artifact
uses: actions/download-artifact@v4
- name: Checkout codebase
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
name: splunk-app
python-version: '3.9'

- name: Install Application Dependencies
run: |
make build
- name: Package and Publish
run: |
make package
make publish
SPLUNKBASE_CREDS="${{ secrets.SPLUNKBASE_CREDS }}" make publish
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build:
$(MAKE) venv
$(MAKE) setup-web

.PHONY: setup-web
setup-web: venv yarn.lock
yarn run setup

Expand Down Expand Up @@ -49,8 +50,8 @@ package: packages/flare/bin/vendor
"flare"

.PHONY: publish
publish: packages/flare.tar.gz
curl -u --request POST https://splunkbase.splunk.com/api/v1/app/7602/new_release/ -F "files[]=@./flare.tar.gz" -F "filename=flare.tar.gz" -F "splunk_versions=9.3" -F "visibility=true"
publish: flare.tar.gz
curl -u "$(SPLUNKBASE_CREDS)" --request POST https://splunkbase.splunk.com/api/v1/app/7602/new_release/ -F "files[]=@./flare.tar.gz" -F "filename=flare.tar.gz" -F "splunk_versions=9.3" -F "visibility=true"

.PHONY: validate
validate: venv-tools
Expand Down

0 comments on commit af7309f

Please sign in to comment.