From 5be68ffa65dbfe21646e56bc22e90a0f871695ac Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 30 Jun 2021 04:49:34 +0300 Subject: [PATCH] Print link to image in upload setup --- .github/workflows/main.yml | 4 +++- build.sh | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c651c9e..cf84f39 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,5 +21,7 @@ jobs: run: ./build.sh - name: Upload # Not using ready S3 actions, because they either don't run on macOS machines or don't support changing the endpoint - run: AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress + run: | + AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress + echo Uploaded https://clovervm.ams3.digitaloceanspaces.com/$(ls) working-directory: output-virtualbox-ovf diff --git a/build.sh b/build.sh index 3edf38b..ff4edaa 100755 --- a/build.sh +++ b/build.sh @@ -47,7 +47,3 @@ mv ./output-virtualbox-ovf/clover-devel.ova ./output-virtualbox-ovf/${VM_NAME} ls -l output-virtualbox-ovf echo "--- All done!" - -if [ "${CI}" == "true" ]; then - echo "Deploying to https://clovervm.ams3.digitaloceanspaces.com/${VM_NAME}" -fi