Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes (fingers crossed) publish workflow #44

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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