Skip to content

Commit

Permalink
Ensure license file gets packaged along w/ the CLI binary (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed May 7, 2024
1 parent 02984a8 commit 7de7b37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ jobs:
reproducible: report
instructions: |
go build -trimpath -ldflags "-s -w" -o "$BIN_PATH" ./cmd/hc-install
cp LICENSE "$TARGET_DIR/LICENSE.txt"
- name: Copy license file to config_dir # for Linux packages
if: ${{ matrix.goos == 'linux' }}
env:
LICENSE_DIR: ".release/linux/package/usr/share/doc/${{ env.PKG_NAME }}"
run: |
mkdir -p "$LICENSE_DIR" && cp LICENSE "$LICENSE_DIR/LICENSE.txt"
- name: Package
if: ${{ matrix.goos == 'linux' }}
uses: hashicorp/actions-packaging-linux@v1
Expand All @@ -112,6 +118,7 @@ jobs:
binary: "dist/${{ env.PKG_NAME }}"
deb_depends: "openssl"
rpm_depends: "openssl"
config_dir: ".release/linux/package/"

- name: Set Package Names
if: ${{ matrix.goos == 'linux' }}
Expand Down

0 comments on commit 7de7b37

Please sign in to comment.