Skip to content

Commit

Permalink
fix: create release action
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangda committed Oct 21, 2023
1 parent 01aa5da commit a84c497
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,17 @@ jobs:
- name: Create Release
id: create-github-release
uses: shogo82148/actions-create-release@v1
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
# body: |
# See the file: CHANGELOG.md
draft: false
prerelease: false

- name: Upload Release Assets
id: upload-release-assets
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create-github-release.outputs.upload_url }}
asset_path: dist/assets/**
overwrite: true
github_token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
files: |
dist/assets/**
container_image:
name: Create and Publish Container Image
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ build-dist: ## Build the application for all platforms defined in GO_OS and GO_A

##@ build-dist-zip
.PHONY: build-dist-zip
build-dist-zip: build-dist ## Build the application for all platforms defined in GO_OS and GO_ARCH in this Makefile and create a zip file for each binary
build-dist-zip: ## Build the application for all platforms defined in GO_OS and GO_ARCH in this Makefile and create a zip file for each binary
@printf "👉 Creating zip files for distribution...\n"
$(call exec_cmd, mkdir -p $(DIST_ASSEST_DIR))
$(foreach GOOS, $(GO_OS), \
Expand Down

0 comments on commit a84c497

Please sign in to comment.