1
0
Fork 0

upload api data to spaces

This commit is contained in:
Zach White 2021-03-06 19:18:45 -08:00 committed by Zach White
parent 1cbf1c681a
commit 08e512a273
2 changed files with 16 additions and 26 deletions

View file

@ -25,18 +25,13 @@ jobs:
- name: Generate API Data - name: Generate API Data
run: qmk generate-api run: qmk generate-api
- name: Install rsync
run: |
apt-get update && apt-get install -y rsync
- name: Upload API Data - name: Upload API Data
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: jakejarvis/s3-sync-action@master
with: with:
ACCESS_TOKEN: ${{ secrets.API_TOKEN_GITHUB }} args: --acl public-read --follow-symlinks --delete
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} env:
BRANCH: main AWS_S3_BUCKET: ${{ secrets.API_SPACE_MASTER }}
FOLDER: api_data/v1 AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY }}
CLEAN: true AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_KEY }}
GIT_CONFIG_EMAIL: hello@qmk.fm AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
REPOSITORY_NAME: qmk/qmk_keyboards SOURCE_DIR: 'api-data'
TARGET_FOLDER: v1

View file

@ -25,18 +25,13 @@ jobs:
- name: Generate API Data - name: Generate API Data
run: qmk generate-api run: qmk generate-api
- name: Install rsync
run: |
apt-get update && apt-get install -y rsync
- name: Upload API Data - name: Upload API Data
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: jakejarvis/s3-sync-action@master
with: with:
ACCESS_TOKEN: ${{ secrets.API_TOKEN_GITHUB }} args: --acl public-read --follow-symlinks --delete
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} env:
BRANCH: main AWS_S3_BUCKET: ${{ secrets.API_SPACE_DEVELOP }}
FOLDER: api_data/v1 AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY }}
CLEAN: true AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_KEY }}
GIT_CONFIG_EMAIL: hello@qmk.fm AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
REPOSITORY_NAME: qmk/qmk_keyboards_devel SOURCE_DIR: 'api-data'
TARGET_FOLDER: v1