diff --git a/.github/workflows/cron-unstable-build.yml b/.github/workflows/cron-unstable-build.yml index 7a8cde033e..532fde8a85 100644 --- a/.github/workflows/cron-unstable-build.yml +++ b/.github/workflows/cron-unstable-build.yml @@ -69,4 +69,18 @@ jobs: run: make install - name: Display /usr/local/bin/ contents - run: ls /usr/local/bin/ \ No newline at end of file + run: ls /usr/local/bin/ + + - name: Create tarball and checksums + run: echo "TAR_FILE_NAME=valkey-server-unstable.linux.$date" >> $GITHUB_OUTPUT + run: | + mkdir -p $TAR_FILE_NAME/bin $TAR_FILE_NAME/share + cp -fv /usr/local/bin/valkey-* $TAR_FILE_NAME/bin + cp -v /home/runner/work/valkey/valkey/COPYING $TAR_FILE_NAME/share/LICENSE + tar -czvf $TAR_FILE_NAME.tar.gz -C $TAR_FILE_NAME --exclude-vcs . + sha256sum $TAR_FILE_NAME.tar.gz > $TAR_FILE_NAME.tar.gz.sha256 + # Move to a directory to simplify upload/sync + mkdir -p source-packages + cp -fv $TAR_FILE_NAME* source-packages/ + ls source-packages/ + shell: bash \ No newline at end of file