Skip to content

Commit

Permalink
CI: Update to dpl v2 and Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Jan 20, 2025
1 parent 2b9a501 commit 01901bf
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ jobs:
name: Build, Upload, Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- name: Cache Node modules
id: node-cache
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
Expand All @@ -31,6 +31,11 @@ jobs:
env:
NODE_OPTIONS: --openssl-legacy-provider

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: Upload pre-build ZIP
if: |
env.ACT != 'true'
Expand All @@ -44,8 +49,8 @@ jobs:
cd build
mkdir build-zip
zip -r build-zip/$GITHUB_SHA.zip worker.js cmaps standard_fonts
sudo gem install --no-document dpl dpl-s3
dpl --provider=s3 --bucket=zotero-download --local-dir=build-zip --upload-dir=ci/client-pdf-worker --acl=public-read --skip_cleanup=true
gem install --no-document dpl -v '>= 2.0'
dpl s3 --bucket zotero-download --local_dir build-zip --upload_dir ci/client-pdf-worker --acl public_read
- name: Run tests
run: npm run test

0 comments on commit 01901bf

Please sign in to comment.