diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/api.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml new file mode 100644 index 000000000..7a7bf75d0 --- /dev/null +++ b/.github/workflows/api.yml | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | name: Update API Data | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: | ||
| 6 | - master | ||
| 7 | paths: | ||
| 8 | - 'keyboards/**' | ||
| 9 | - 'layouts/community/**' | ||
| 10 | |||
| 11 | jobs: | ||
| 12 | api_data: | ||
| 13 | runs-on: ubuntu-latest | ||
| 14 | container: qmkfm/base_container | ||
| 15 | |||
| 16 | steps: | ||
| 17 | - uses: actions/checkout@v2 | ||
| 18 | with: | ||
| 19 | fetch-depth: 1 | ||
| 20 | persist-credentials: false | ||
| 21 | |||
| 22 | - name: Generate API Data | ||
| 23 | run: qmk generate-api | ||
| 24 | |||
| 25 | - name: Upload API Data | ||
| 26 | uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
| 27 | with: | ||
| 28 | ACCESS_TOKEN: ${{ secrets.API_TOKEN_GITHUB }} | ||
| 29 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| 30 | BRANCH: main | ||
| 31 | FOLDER: api_data/v1 | ||
| 32 | CLEAN: true | ||
| 33 | GIT_CONFIG_EMAIL: hello@qmk.fm | ||
| 34 | REPOSITORY_NAME: qmk/qmk_keyboards | ||
| 35 | TARGET_FOLDER: v1 | ||
