Skip to content

Commit

Permalink
feat: use makefile instead
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed Nov 13, 2023
1 parent ef723c3 commit 9e3e843
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,10 @@ jobs:

- name: Publish artifacts
env:
BPKG_TOKEN: ${{ secrets.BPKG_TOKEN }}
FLUVIO_BIN: ~/.fluvio/bin/fluvio
run: make publish-artifacts-dev

- name: Publish PackageSet
env:
BPKG_TOKEN: ${{ secrets.BPKG_TOKEN }}
FLUVIO_VERSION: "0.10.17"
FLUVIO_CLOUD_VERSION: "0.2.15"
run: |
./actions/publish-pkgset.sh
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion actions/publish-pkgset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ curl -v -X "POST" "https://hub.infinyon.cloud/hub/v1/fvm/pkgset" \
"version": "$FLUVIO_VERSION"
}
],
"pkgset": "$FLUVIO_VERSION"
"pkgset": "$PKGSET_NAME"
}
EOF
6 changes: 5 additions & 1 deletion makefiles/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ publish-artifacts: install-fluvio-package unzip-gh-release-artifacts
$$ARTIFACT; \
)

publish-artifacts: PUBLIC_VERSION=$(subst -$(GIT_COMMIT_SHA),+$(GIT_COMMIT_SHA),$(VERSION))
publish-artifacts-hub: PUBLIC_VERSION=$(subst -$(GIT_COMMIT_SHA),+$(GIT_COMMIT_SHA),$(VERSION))
publish-artifacts-hub: unzip-gh-release-artifacts
@echo "Publish to hub"
$(foreach bin, $(PUBLISH_BINARIES_HUB), \
Expand All @@ -184,6 +184,10 @@ publish-artifacts-hub: unzip-gh-release-artifacts
$(DRY_RUN_ECHO) actions/upload-bpkg.sh $$ARTIFACT $$TARGET ${CHANNEL}; \
) \
)
export PKGSET_NAME=$(CHANNEL)
export FLUVIO_VERSION=$(PUBLIC_VERSION)
export FLUVIO_CLOUD_VERSION="0.2.15"
./actions/publish-pkgset.sh

publish-artifacts-dev-hub: CHANNEL=latest
publish-artifacts-dev-hub: publish-artifacts-hub
Expand Down

0 comments on commit 9e3e843

Please sign in to comment.