Skip to content

Commit

Permalink
Merge pull request #8675 from coreycb/main-fix-ftp2
Browse files Browse the repository at this point in the history
Fix GCS Upload to FTP jobs again
  • Loading branch information
coreycb authored Dec 13, 2024
2 parents d5a09ad + dbc631c commit 511c013
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/shippable_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -876,10 +876,14 @@ jobs:
mkdir -p "${FTP_LOCAL_PATH}"
cp "uploads/${PKG_FILE}" "${FTP_LOCAL_PATH}"
cp "uploads/${FTP_TAR_FILENAME}" "${FTP_LOCAL_PATH}"
echo "$(pwd)/${FTP_LOCAL_PATH}/" | sed -e "s/\.\///"
ls "${FTP_LOCAL_PATH}"
if [[ "$RELEASE_TYPE" = "daily" ]]; then
mkdir -p "${FTP_LOCAL_PATH_NIGHTLY_LATEST}"
cp "uploads/${PKG_FILE}" "${FTP_LOCAL_PATH_NIGHTLY_LATEST}"
cp "uploads/${FTP_TAR_FILENAME}" "${FTP_LOCAL_PATH_NIGHTLY_LATEST}"
echo "$(pwd)/${FTP_LOCAL_PATH}/" | sed -e "s/\.\///"
ls "${FTP_LOCAL_PATH}"
fi
echo "SERVICE_ACCOUNT=${SERVICE_ACCOUNT}" | tee -a $GITHUB_OUTPUT
Expand All @@ -903,28 +907,28 @@ jobs:
uses: google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0 # v2.2.1
with:
path: ${{ steps.prepare_ftp.outputs.FTP_LOCAL_PATH }}/${{ steps.rename.outputs.PKG_FILE }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION }}/${{ steps.rename.outputs.PKG_FILE }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION }}

- name: GCS Upload of APK Package to FTP Nightly Latest
if: ${{ !inputs.skipFtp && contains(matrix.releaseTarget, 'ftp') && matrix.packageFormat == 'apk' && needs.dump_config.outputs.releaseType == 'daily'}}
uses: google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0 # v2.2.1
with:
path: ${{ steps.prepare_ftp.outputs.FTP_LOCAL_PATH_NIGHTLY_LATEST }}/${{ steps.rename.outputs.PKG_FILE }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION_NIGHTLY_LATEST }}/${{ steps.rename.outputs.PKG_FILE }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION_NIGHTLY_LATEST }}

- name: GCS Upload of Source Tar to FTP
if: ${{ !inputs.skipFtp && contains(matrix.releaseTarget, 'ftp') && matrix.packageFormat == 'apk' }}
uses: google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0 # v2.2.1
with:
path: ${{ steps.prepare_ftp.outputs.FTP_LOCAL_PATH }}/${{ steps.generate_tar.outputs.FTP_TAR_FILENAME }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION }}/${{ steps.generate_tar.outputs.FTP_TAR_FILENAME }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION }}

- name: GCS Upload of Source Tar to FTP Nightly Latest
if: ${{ !inputs.skipFtp && contains(matrix.releaseTarget, 'ftp') && matrix.packageFormat == 'apk' && needs.dump_config.outputs.releaseType == 'daily'}}
uses: google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0 # v2.2.1
with:
path: ${{ steps.prepare_ftp.outputs.FTP_LOCAL_PATH_NIGHTLY_LATEST }}/${{ steps.generate_tar.outputs.FTP_TAR_FILENAME }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION_NIGHTLY_LATEST }}/${{ steps.generate_tar.outputs.FTP_TAR_FILENAME }}
destination: ${{ steps.prepare_ftp.outputs.FTP_DESTINATION_NIGHTLY_LATEST }}

- name: Summary
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down

0 comments on commit 511c013

Please sign in to comment.