Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,16 @@ jobs:
- name: Build binary
run: |
git clone https://github.com/manticoresoftware/phar_builder.git
# We need to write current version HERE before we pack
echo "${{ needs.vars.outputs.version_full }}" > APP_VERSION
# Now build it
./phar_builder/bin/build --name="Manticore Backup" --package="${{ env.APP_NAME }}"

- name: Create artifact
run: |
name="${{ env.APP_NAME }}_${{ needs.vars.outputs.version_full }}"
echo "$name"
echo "${{ needs.vars.outputs.version_full }}" > build/APP_VERSION
mkdir build/bin
mkdir -p build/bin
cp build/${{ env.APP_NAME }} build/bin/${{ env.APP_NAME }}
tar czf "$name.tar.gz" -C build bin/${{ env.APP_NAME }} share
zip "$name.zip" build/${{ env.APP_NAME }}.ps1
Expand Down Expand Up @@ -114,8 +116,6 @@ jobs:
cp -r build/${{ env.APP_NAME }} .rpmpkg/usr/bin/${{ env.APP_NAME }}
cp -p LICENSE .rpmpkg/usr/share/manticore/modules/${{ env.APP_NAME }}/LICENSE
cp -p README.md .rpmpkg/usr/share/manticore/modules/${{ env.APP_NAME }}/README.md
echo "${{ needs.vars.outputs.version_full }}" > .debpkg/usr/share/manticore/modules/${{ env.APP_NAME }}/APP_VERSION
echo "${{ needs.vars.outputs.version_full }}" > .rpmpkg/usr/share/manticore/modules/${{ env.APP_NAME }}/APP_VERSION
sudo chown -R root:root .debpkg
sudo chown -R root:root .rpmpkg
shell: bash
Expand Down