添加 S3cmd CLI 工具以支持从 S3 下载数据

This commit is contained in:
METO
2025-01-07 06:21:51 +00:00
parent 03f9d94c18
commit 30bc221dae

View File

@@ -18,11 +18,20 @@ jobs:
with:
path: data
ref: master
- name: Set up S3cmd cli tool
uses: s3-actions/s3cmd@v1.9.0
with:
provider: cloudflare
region: 'auth'
access_key: ${{ secrets.S3_ACCESS_KEY }}
secret_key: ${{ secrets.S3_SECRET_KEY }}
account_id: ${{ secrets.S3_ACCOUNT_ID }}
- name: Parse
run: |
s3cmd get s3://openipdb/openipdb.ipdb /tmp/openipdb.ipdb
ls -al /tmp/openipdb.ipdb
cd build
yarn install
yarn add openipdb.ipdb
yarn build
- name: Push
env: