build.yml: packaging config files to artifacts (Resolves #615)

This commit is contained in:
s1lentq 2021-04-17 04:07:36 +07:00
parent f2ef23db61
commit f60e5eabee

View File

@ -192,6 +192,7 @@ jobs:
mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so
mv build-gcc/regamedll/cs.so publish/cs-gcc.so mv build-gcc/regamedll/cs.so publish/cs-gcc.so
mv regamedll/version/appversion.h publish/appversion.h mv regamedll/version/appversion.h publish/appversion.h
mv dist/ publish/
- name: Run GLIBC/ABI version compat test - name: Run GLIBC/ABI version compat test
run: | run: |
@ -248,13 +249,15 @@ jobs:
fi fi
rm -f appversion.h rm -f appversion.h
- name: Packaging bin/dbg - name: Packaging binaries
id: packaging-job id: packaging-job
if: | if: |
github.event_name == 'release' && github.event_name == 'release' &&
github.event.action == 'published' && github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/') startsWith(github.ref, 'refs/tags/')
run: | run: |
rsync -a dist/ bin/win32/cstrike
rsync -a dist/ bin/linux32/cstrike
7z a -tzip regamedll-bin-${{ env.APP_VERSION }}.zip bin/ cssdk/ 7z a -tzip regamedll-bin-${{ env.APP_VERSION }}.zip bin/ cssdk/
- name: Publish artifacts - name: Publish artifacts
@ -272,5 +275,5 @@ jobs:
- name: Cleanup temporary artifacts - name: Cleanup temporary artifacts
if: success() && steps.publish-job.outcome == 'success' if: success() && steps.publish-job.outcome == 'success'
run: | run: |
rm -rf bin debug cssdk rm -rf bin dist debug cssdk
rm -f *.zip appversion.h rm -f *.zip appversion.h