Merge pull request #444 from Scrumplex/fix-release-workflow
Fix release workflow
This commit is contained in:
commit
e313b366a0
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -171,7 +171,7 @@ jobs:
|
|||||||
cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.INSTALL_DIR }}
|
cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.INSTALL_DIR }}
|
||||||
|
|
||||||
cd ${{ env.INSTALL_DIR }}
|
cd ${{ env.INSTALL_DIR }}
|
||||||
tar -czf ../PolyMC.tar.gz *
|
tar --owner root --group root -czf ../PolyMC.tar.gz *
|
||||||
|
|
||||||
- name: Package (Linux, portable)
|
- name: Package (Linux, portable)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
10
.github/workflows/trigger_release.yml
vendored
10
.github/workflows/trigger_release.yml
vendored
@ -33,6 +33,7 @@ jobs:
|
|||||||
- name: Package artifacts properly
|
- name: Package artifacts properly
|
||||||
run: |
|
run: |
|
||||||
mv ${{ github.workspace }}/PolyMC-source PolyMC-${{ env.VERSION }}
|
mv ${{ github.workspace }}/PolyMC-source PolyMC-${{ env.VERSION }}
|
||||||
|
mv PolyMC-Linux-Portable*/PolyMC-portable.tar.gz PolyMC-Linux-Portable-${{ env.VERSION }}.tar.gz
|
||||||
mv PolyMC-Linux*/PolyMC.tar.gz PolyMC-Linux-${{ env.VERSION }}.tar.gz
|
mv PolyMC-Linux*/PolyMC.tar.gz PolyMC-Linux-${{ env.VERSION }}.tar.gz
|
||||||
mv PolyMC-*.AppImage/PolyMC-*.AppImage PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage
|
mv PolyMC-*.AppImage/PolyMC-*.AppImage PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage
|
||||||
mv PolyMC-macOS*/PolyMC.tar.gz PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
mv PolyMC-macOS*/PolyMC.tar.gz PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
||||||
@ -42,9 +43,9 @@ jobs:
|
|||||||
for d in PolyMC-Windows-*; do
|
for d in PolyMC-Windows-*; do
|
||||||
cd "${d}" || continue
|
cd "${d}" || continue
|
||||||
ARCH="$(echo -n ${d} | cut -d '-' -f 3)"
|
ARCH="$(echo -n ${d} | cut -d '-' -f 3)"
|
||||||
PORT="$(echo -n ${d} | grep -o portable || true)"
|
PORT="$(echo -n ${d} | grep -o Portable || true)"
|
||||||
NAME="PolyMC-Windows-${ARCH}"
|
NAME="PolyMC-Windows-${ARCH}"
|
||||||
test -z "${PORT}" || NAME="${NAME}-portable"
|
test -z "${PORT}" || NAME="${NAME}-Portable"
|
||||||
zip -r -9 "../${NAME}-${{ env.VERSION }}.zip" *
|
zip -r -9 "../${NAME}-${{ env.VERSION }}.zip" *
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
@ -61,10 +62,11 @@ jobs:
|
|||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
PolyMC-Linux-${{ env.VERSION }}.tar.gz
|
PolyMC-Linux-${{ env.VERSION }}.tar.gz
|
||||||
|
PolyMC-Linux-Portable-${{ env.VERSION }}.tar.gz
|
||||||
PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage
|
PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage
|
||||||
PolyMC-Windows-i686-${{ env.VERSION }}.zip
|
PolyMC-Windows-i686-${{ env.VERSION }}.zip
|
||||||
PolyMC-Windows-i686-portable-${{ env.VERSION }}.zip
|
PolyMC-Windows-i686-Portable-${{ env.VERSION }}.zip
|
||||||
PolyMC-Windows-x86_64-${{ env.VERSION }}.zip
|
PolyMC-Windows-x86_64-${{ env.VERSION }}.zip
|
||||||
PolyMC-Windows-x86_64-portable-${{ env.VERSION }}.zip
|
PolyMC-Windows-x86_64-Portable-${{ env.VERSION }}.zip
|
||||||
PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
||||||
PolyMC-${{ env.VERSION }}.tar.gz
|
PolyMC-${{ env.VERSION }}.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user