chore: add LICENSE to builds

This commit is contained in:
iff 2024-12-10 18:37:20 +01:00
parent aa48a68af0
commit a3d3c6f143
2 changed files with 12 additions and 9 deletions

View file

@ -83,23 +83,25 @@ jobs:
cargo install cargo-deb --locked
cargo deb -p pay-respects --no-build --no-strip --output . --target ${{ matrix.target }}
- name: zipping files (exe)
if: runner.os == 'Windows'
run: >
7z a pay-respects-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.zip
./target/${{ matrix.target }}/release/pay-respects.exe
./target/${{ matrix.target }}/release/_pay-respects-module-100-runtime-rules.exe
./target/${{ matrix.target }}/release/_pay-respects-fallback-100-request-ai.exe
- name: zipping files (unix)
if: runner.os != 'Windows'
run: >
tar -czf pay-respects-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.tar.gz
tar --zstd -cf pay-respects-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.tar.zst
LICENSE
-C target/${{ matrix.target }}/release
pay-respects
_pay-respects-module-100-runtime-rules
_pay-respects-fallback-100-request-ai
- name: zipping files (exe)
if: runner.os == 'Windows'
run: >
7z a pay-respects-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.zip
./LICENSE
./target/${{ matrix.target }}/release/pay-respects.exe
./target/${{ matrix.target }}/release/_pay-respects-module-100-runtime-rules.exe
./target/${{ matrix.target }}/release/_pay-respects-fallback-100-request-ai.exe
- name: uploading to release
uses: ncipollo/release-action@v1
with:

View file

@ -31,4 +31,5 @@ assets = [
["target/release/pay-respects", "usr/bin/", "755"],
["target/release/_pay-respects-module-100-runtime-rules", "usr/bin/", "755"],
["target/release/_pay-respects-fallback-100-request-ai", "usr/bin/", "755"],
["LICENSE", "usr/share/doc/pay-respects/", "644"],
]