Skip to content

Commit

Permalink
Add LICENSE to Linux packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nywilken committed Apr 11, 2024
1 parent 51b8a1f commit e2c54a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ jobs:
cp LICENSE.txt "$TARGET_DIR/"
go build -o "$BIN_PATH" -ldflags="$LD_FLAGS" -trimpath -buildvcs=false
- name: Copy license file to config_dir
if: ${{ matrix.goos == 'linux' }}
env:
LICENSE_DIR: ".release/linux/package/usr/share/doc/${{ env.REPO_NAME }}"
run: |
mkdir -p "$LICENSE_DIR" && cp LICENSE "$LICENSE_DIR/LICENSE.txt"
- name: Linux Packaging
uses: hashicorp/actions-packaging-linux@v1
with:
Expand All @@ -175,6 +181,7 @@ jobs:
binary: "dist/${{ env.REPO_NAME }}"
deb_depends: "openssl"
rpm_depends: "openssl"
config_dir: ".release/linux/package/"
- name: Add Linux Package names to env
run: |
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV
Expand Down

0 comments on commit e2c54a3

Please sign in to comment.