Skip to content

Commit

Permalink
fix gh release command #2
Browse files Browse the repository at this point in the history
Signed-off-by: Tim <[email protected]>
  • Loading branch information
Avarei committed Jun 28, 2024
1 parent 639d16e commit ce3e9a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pkl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
with:
pkl-version: 0.26.1
- name: Login to GH
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
run: echo ${{ github.token }} | gh auth login --with-token
- name: Get Tag Name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Package and Create GitHub Release
id: create_package
run: make pkl-release TAG=$TAG_NAME
run: make pkl-release TAG=$TAG_NAME TARGET=${{ github.sha }}
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
REPO =? github.com/crossplane-contrib/function-pkl
CONTAINER_IMAGE =? ghcr.io/crossplane-contrib/function-pkl

# Target used for Pkl Package Releases
TARGET =? $(shell git branch --show-current)

.PHONY: pkl-resolve
pkl-resolve:
pkl project resolve ./pkl/*/
Expand All @@ -20,7 +23,7 @@ pkl-release: check-tag pkl-resolve
gh release create ${TAG} \
-t ${TAG} \
-n "" \
--target ${TAG} \
--target ${TARGET} \
--prerelease \
--draft \
$(RELEASE_FILES)
Expand Down

0 comments on commit ce3e9a4

Please sign in to comment.