@@ -22,15 +22,15 @@ jobs:
|
||||
- name: Create latest.zip
|
||||
run: |
|
||||
set -e
|
||||
# ensure a small staging dir for upload
|
||||
mkdir -p dist
|
||||
# ensure a small staging dir for upload (absolute path so later cd won't affect it)
|
||||
mkdir -p "$GITHUB_WORKSPACE/dist"
|
||||
# install zip utility (container may not have it)
|
||||
apt-get update && apt-get install -y zip
|
||||
# create latest.zip containing the assets directory (so zip root contains 'assets/')
|
||||
cd app/src/main
|
||||
zip -r "$GITHUB_WORKSPACE/latest.zip" assets
|
||||
# move zip into dist so the FTP action can upload just that file
|
||||
mv "$GITHUB_WORKSPACE/latest.zip" dist/
|
||||
# move zip into the workspace dist so the FTP action can upload just that file
|
||||
mv "$GITHUB_WORKSPACE/latest.zip" "$GITHUB_WORKSPACE/dist/"
|
||||
|
||||
- name: Upload latest.zip via FTP to releases
|
||||
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
||||
|
||||
Reference in New Issue
Block a user