From e0aaa7e36655fdedac6e03777759bc57b56e51f9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 31 Aug 2024 01:17:22 -0400 Subject: [PATCH] Fix CI failures with dpl v2 dpl v2 just left beta, but it's failing with a syntax error in the CloudFormation template, so stick to v1 for now. --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a1e744cc4..aa964879e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,12 @@ jobs: env: NODE_OPTIONS: --openssl-legacy-provider + # Somehow forces dpl v1 to be installed, even though v2 is installed without + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.3' # Not needed with a `.ruby-version` or `.tool-versions` + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Upload deployment ZIP if: | env.ACT != 'true' @@ -71,6 +77,9 @@ jobs: cd build zip -r ../build-zip/$GITHUB_SHA.zip * cd .. + # Once dpl 2 works: + #sudo gem install --no-document dpl + #dpl s3 --bucket zotero-download --local_dir build-zip --upload_dir ci/client --acl public_read sudo gem install --no-document dpl dpl-s3 dpl --provider=s3 --bucket=zotero-download --local-dir=build-zip --upload-dir=ci/client --acl=public-read --skip_cleanup=true