diff options
author | Zach White <skullydazed@gmail.com> | 2020-10-25 14:48:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 14:48:44 -0700 |
commit | 0c42f91f4ccf98a37f055afb777ed491da56335e (patch) | |
tree | 547344d80fe7bf75ff3f348eefbc19dbdd346a8a /.github | |
parent | 8ef82c466e73e555fd74107d4c57e678d7152ecc (diff) | |
download | qmk_firmware-0c42f91f4ccf98a37f055afb777ed491da56335e.tar.gz qmk_firmware-0c42f91f4ccf98a37f055afb777ed491da56335e.zip |
Generate api data on each push (#10609)
* add new qmk generate-api command, to generate a complete set of API data.
* Generate api data and push it to the keyboard repo
* fix typo
* Apply suggestions from code review
Co-authored-by: Joel Challis <git@zvecr.com>
* fixup api workflow
* remove file-changes-action
* use a more mainstream github action
* fix yaml error
* Apply suggestions from code review
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* more uniform date handling
* make flake8 happy
* Update lib/python/qmk/decorators.py
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
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 | ||