mirror of
https://github.com/metowolf/iplist.git
synced 2025-12-19 08:14:37 +08:00
添加 S3cmd CLI 工具以支持从 S3 下载数据
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -18,11 +18,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: data
|
path: data
|
||||||
ref: master
|
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
|
- name: Parse
|
||||||
run: |
|
run: |
|
||||||
|
s3cmd get s3://openipdb/openipdb.ipdb /tmp/openipdb.ipdb
|
||||||
|
ls -al /tmp/openipdb.ipdb
|
||||||
cd build
|
cd build
|
||||||
yarn install
|
yarn install
|
||||||
yarn add openipdb.ipdb
|
|
||||||
yarn build
|
yarn build
|
||||||
- name: Push
|
- name: Push
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user