From 30bc221dae2540d3125d40b7a1b11cf4cbe8c291 Mon Sep 17 00:00:00 2001 From: METO Date: Tue, 7 Jan 2025 06:21:51 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20S3cmd=20CLI=20=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E4=BB=A5=E6=94=AF=E6=8C=81=E4=BB=8E=20S3=20=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 960f98dd..cf8d6773 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: