Compress directories in their respective jobs for faster release
This commit is contained in:
parent
74b9304a3a
commit
45c87160ad
|
@ -131,12 +131,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
find dist/client/ -type f -name "*.pyc" -delete
|
find dist/client/ -type f -name "*.pyc" -delete
|
||||||
while read line; do find dist/client/ -type f -name "${line}" -delete ; done < hydrus/static/build_files/linux/files_to_delete.txt
|
while read line; do find dist/client/ -type f -name "${line}" -delete ; done < hydrus/static/build_files/linux/files_to_delete.txt
|
||||||
|
-
|
||||||
|
name: Compress Client
|
||||||
|
run: |
|
||||||
|
mv dist/client "dist/Hydrus Network"
|
||||||
|
tar -czvf Ubuntu-Extract.tar.gz -C dist "ubuntu/Hydrus Network"
|
||||||
-
|
-
|
||||||
name: Upload a Build Artifact
|
name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Ubuntu-Extract
|
name: Ubuntu-Extract
|
||||||
path: dist/client
|
path: Ubuntu-Extract.tar.gz
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
|
|
||||||
|
@ -209,6 +214,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
move hydrus\static\build_files\windows\InnoSetup.iss InnoSetup.iss
|
move hydrus\static\build_files\windows\InnoSetup.iss InnoSetup.iss
|
||||||
ISCC.exe InnoSetup.iss
|
ISCC.exe InnoSetup.iss
|
||||||
|
-
|
||||||
|
name: Compress Client
|
||||||
|
run: |
|
||||||
|
7z.exe a -tzip -mm=Deflate -mx=9 Windows-Extract.zip '.\dist\Hydrus Network\'
|
||||||
-
|
-
|
||||||
name: Upload a Build Artifact
|
name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -222,7 +231,7 @@ jobs:
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Windows-Extract
|
name: Windows-Extract
|
||||||
path: dist\Hydrus Network
|
path: Windows-Extract.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
|
|
||||||
|
@ -249,13 +258,8 @@ jobs:
|
||||||
mkdir ubuntu windows
|
mkdir ubuntu windows
|
||||||
mv MacOS-DMG/HydrusNetwork.dmg Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.macOS.-.App.dmg
|
mv MacOS-DMG/HydrusNetwork.dmg Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.macOS.-.App.dmg
|
||||||
mv Windows-Install/HydrusInstaller.exe Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.Windows.-.Installer.exe
|
mv Windows-Install/HydrusInstaller.exe Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.Windows.-.Installer.exe
|
||||||
mv Windows-Extract "windows/Hydrus Network"
|
mv Windows-Extract/Windows-Extract.zip Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.Windows.-.Extract.only.zip
|
||||||
mv Ubuntu-Extract "ubuntu/Hydrus Network"
|
mv Ubuntu-Extract/Ubuntu-Extract.tar.gz Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.Linux.-.Executable.tar.gz
|
||||||
-
|
|
||||||
name: Compress Directories
|
|
||||||
run: |
|
|
||||||
zip -9 -r Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.Windows.-.Extract.only.zip "windows/Hydrus Network"
|
|
||||||
tar -czvf Hydrus.Network.${{ steps.meta.outputs.version_short }}.-.Linux.-.Executable.tar.gz "ubuntu/Hydrus Network"
|
|
||||||
-
|
-
|
||||||
name: Release new
|
name: Release new
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|
|
@ -56,11 +56,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
find dist/client/ -type f -name "*.pyc" -delete
|
find dist/client/ -type f -name "*.pyc" -delete
|
||||||
while read line; do find dist/client/ -type f -name "${line}" -delete ; done < hydrus/static/build_files/linux/files_to_delete.txt
|
while read line; do find dist/client/ -type f -name "${line}" -delete ; done < hydrus/static/build_files/linux/files_to_delete.txt
|
||||||
|
-
|
||||||
|
name: Compress Client
|
||||||
|
run: |
|
||||||
|
mv dist/client "dist/Hydrus Network"
|
||||||
|
tar -czvf Ubuntu-Extract.tar.gz -C dist "ubuntu/Hydrus Network"
|
||||||
-
|
-
|
||||||
name: Upload a Build Artifact
|
name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Ubuntu-Extract
|
name: Ubuntu-Extract
|
||||||
path: dist/client
|
path: Ubuntu-Extract.tar.gz
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 2
|
retention-days: 2
|
|
@ -74,6 +74,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
move hydrus\static\build_files\windows\InnoSetup.iss InnoSetup.iss
|
move hydrus\static\build_files\windows\InnoSetup.iss InnoSetup.iss
|
||||||
ISCC.exe InnoSetup.iss
|
ISCC.exe InnoSetup.iss
|
||||||
|
-
|
||||||
|
name: Compress Client
|
||||||
|
run: |
|
||||||
|
7z.exe a -tzip -mm=Deflate -mx=9 Windows-Extract.zip '.\dist\Hydrus Network\'
|
||||||
-
|
-
|
||||||
name: Upload a Build Artifact
|
name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -87,6 +91,6 @@ jobs:
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Windows-Extract
|
name: Windows-Extract
|
||||||
path: dist\Hydrus Network
|
path: Windows-Extract.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 2
|
retention-days: 2
|
Loading…
Reference in New Issue