File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# limitations under the License.
1616#
1717
18- set -euo pipefail
18+ set -euxo pipefail
1919
2020SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
2121# shellcheck disable=SC2002
@@ -49,7 +49,7 @@ function uploadFile() {
4949 [ ! -d " $FILENAME_SRC " ] && echo " Directory $FILENAME_SRC does not exist." && exit 1
5050
5151 # shellcheck disable=SC2086
52- aws s3 cp --recursive $DRY_RUN " $FILENAME_SRC " " s3://$AWS_S3_BUCKET_NAME /$BASE /$FILENAME_DST "
52+ aws s3 cp $DEBUG --recursive $DRY_RUN " $FILENAME_SRC " " s3://$AWS_S3_BUCKET_NAME /$BASE /$FILENAME_DST "
5353}
5454
5555# publish repo
Original file line number Diff line number Diff line change @@ -48,11 +48,12 @@ jobs:
4848 ./mvnw clean verify -DtrimStackTrace=false
4949
5050 - name : Upload binaries to static.snyk.io
51- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' }}
51+ # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' }}
5252 env :
5353 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5454 AWS_S3_BUCKET_NAME : ${{ secrets.AWS_S3_BUCKET_NAME }}
5555 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5656 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
57+ DEBUG : " --debug"
5758 run : |
5859 .github/upload-to-s3.sh preview
You can’t perform that action at this time.
0 commit comments