Skip to content

Commit

Permalink
fix: OMG, what a disaster (just joking about CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
achetronic committed Jun 10, 2024
1 parent 65b5371 commit 092a0b1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}
Expand All @@ -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 }}"

0 comments on commit 092a0b1

Please sign in to comment.