-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OMG, what a disaster (just joking about CI)
- Loading branch information
1 parent
65b5371
commit 092a0b1
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,8 @@ jobs: | |
go_version_raw=$(grep "^go " go.mod | awk '{print $2}') | ||
echo "go_version=${go_version_raw}" >> "$GITHUB_OUTPUT" | ||
# Find the path for main.go file as recently golang project | ||
# structure was finally standardized | ||
- name: Determine main.go path | ||
id: find_main_go | ||
run: | | ||
|
@@ -61,6 +63,17 @@ jobs: | |
echo "main_go_path=./cmd/" >> "$GITHUB_OUTPUT" | ||
fi | ||
# Omit the LICENSE file only for the very first release. | ||
# This step is only to manage some technical debt we caused in the beginning. | ||
- name: Find release extra files | ||
id: find_release_extra_files | ||
run: | | ||
if [ -f "./LICENSE" ]; then | ||
echo "release_extra_files='LICENSE README.md'" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "release_extra_files='README.md'" >> "$GITHUB_OUTPUT" | ||
fi | ||
- uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -71,4 +84,4 @@ jobs: | |
binary_name: "reforma" | ||
release_tag: ${{ inputs.release }} | ||
overwrite: true | ||
extra_files: LICENSE README.md | ||
extra_files: "${{ steps.find_release_extra_files.outputs.release_extra_files }}" |