summaryrefslogtreecommitdiffstats
path: root/.github/workflows/api.yml
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-03-07 05:18:28 +0000
committerQMK Bot <hello@qmk.fm>2021-03-07 05:18:28 +0000
commitd170a1c0e261e276ca053bf258c5d21bc17f038e (patch)
tree0515ca790f76161626ae0b85e35691507a6e801e /.github/workflows/api.yml
parentfbd6b28633cb10774859fffc8e69d3a6fe1e67da (diff)
parent08e512a273f9123dbe3477fba447da4d9ea53d53 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to '.github/workflows/api.yml')
-rw-r--r--.github/workflows/api.yml21
1 files changed, 8 insertions, 13 deletions
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
index dfb1b58895..8f1d917dc7 100644
--- a/.github/workflows/api.yml
+++ b/.github/workflows/api.yml
@@ -25,18 +25,13 @@ jobs:
- name: Generate API Data
run: qmk generate-api
- - name: Install rsync
- run: |
- apt-get update && apt-get install -y rsync
-
- name: Upload API Data
- uses: JamesIves/github-pages-deploy-action@3.7.1
+ uses: jakejarvis/s3-sync-action@master
with:
- ACCESS_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BRANCH: main
- FOLDER: api_data/v1
- CLEAN: true
- GIT_CONFIG_EMAIL: hello@qmk.fm
- REPOSITORY_NAME: qmk/qmk_keyboards
- TARGET_FOLDER: v1
+ args: --acl public-read --follow-symlinks --delete
+ env:
+ AWS_S3_BUCKET: ${{ secrets.API_SPACE_MASTER }}
+ AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_KEY }}
+ AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
+ SOURCE_DIR: 'api-data'