Skip to content

Commit

Permalink
Merge API update workflow (qmk#19121)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Nov 21, 2022
1 parent c96d9d3 commit e451703
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 46 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- develop
paths:
- 'keyboards/**'
- 'layouts/community/**'
Expand All @@ -17,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
container: qmkfm/qmk_cli

# protect against those who develop with their fork on master
# protect against those who work in their fork on 'important' branches
if: github.repository == 'qmk/qmk_firmware'

steps:
Expand All @@ -26,15 +27,20 @@ jobs:
fetch-depth: 1
persist-credentials: false

- name: Install dependencies
run: |
pip3 install -r requirements-dev.txt
- name: Generate API Data
run: qmk generate-api
run: |
qmk generate-api
- name: Upload API Data
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.API_SPACE_MASTER }}
AWS_S3_BUCKET: ${{ github.ref == 'refs/heads/develop' && secrets['API_SPACE_DEVELOP'] || 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
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/develop_api.yml

This file was deleted.

0 comments on commit e451703

Please sign in to comment.