summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jael're <drashna@live.com>2021-12-07 09:40:27 -0800
committerDrashna Jael're <drashna@live.com>2021-12-07 09:40:27 -0800
commit93e4f52fc6ec1633d6b19d8b6e6286fdb1353dc5 (patch)
tree5cac451ac3a9edef35e55d6418a12a169143a317
parentca700fea6168dd39c0628757cf5645729770b0a3 (diff)
Update github actions
-rw-r--r--.github/workflows/api.yml38
-rw-r--r--.github/workflows/auto_tag.yaml33
-rw-r--r--.github/workflows/cli.yml27
-rw-r--r--.github/workflows/develop_api.yml38
-rw-r--r--.github/workflows/develop_update.yml37
-rw-r--r--.github/workflows/docs.yml43
-rw-r--r--.github/workflows/format_push.yaml6
-rw-r--r--.github/workflows/unit_test.yml2
8 files changed, 3 insertions, 221 deletions
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
deleted file mode 100644
index a19667f97e..0000000000
--- a/.github/workflows/api.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Update API Data
-
-on:
- push:
- branches:
- - master
- paths:
- - 'keyboards/**'
- - 'layouts/community/**'
- workflow_dispatch:
-
-jobs:
- api_data:
- runs-on: ubuntu-latest
- container: qmkfm/qmk_cli
-
- # protect against those who develop with their fork on master
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 1
- persist-credentials: false
-
- - name: Generate API Data
- 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_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'
diff --git a/.github/workflows/auto_tag.yaml b/.github/workflows/auto_tag.yaml
deleted file mode 100644
index 29e85c41ca..0000000000
--- a/.github/workflows/auto_tag.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-name: Essential files modified
-
-on:
- push:
- branches:
- - master
- paths:
- - quantum/**/*
- - tmk_core/**/*
- - drivers/**/*
- - tests/**/*
- - util/**/*
- - platforms/**/*
- - Makefile
- - '*.mk'
-
-jobs:
- tag:
- runs-on: ubuntu-latest
-
- # protect against those who develop with their fork on master
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 0
-
- - name: Bump version and push tag
- uses: anothrNick/github-tag-action@1.26.0
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- DEFAULT_BUMP: 'patch'
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
deleted file mode 100644
index 2ea810958b..0000000000
--- a/.github/workflows/cli.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: CLI CI
-
-on:
- push:
- branches:
- - master
- - develop
- pull_request:
- paths:
- - 'lib/python/**'
- - 'requirements.txt'
- - '.github/workflows/cli.yml'
-
-jobs:
- test:
- runs-on: ubuntu-latest
-
- container: qmkfm/qmk_cli
-
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Install dependencies
- run: pip3 install -r requirements-dev.txt
- - name: Run tests
- run: qmk pytest
diff --git a/.github/workflows/develop_api.yml b/.github/workflows/develop_api.yml
deleted file mode 100644
index f0098142c7..0000000000
--- a/.github/workflows/develop_api.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Update Develop API Data
-
-on:
- push:
- branches:
- - develop
- paths:
- - 'keyboards/**'
- - 'layouts/community/**'
- workflow_dispatch:
-
-jobs:
- api_data:
- runs-on: ubuntu-latest
- container: qmkfm/qmk_cli
-
- # protect against those who work in their fork on develop
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 1
- persist-credentials: false
-
- - name: Generate API Data
- 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_DEVELOP }}
- 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'
diff --git a/.github/workflows/develop_update.yml b/.github/workflows/develop_update.yml
deleted file mode 100644
index 285720fefe..0000000000
--- a/.github/workflows/develop_update.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: Update develop after master merge
-
-on:
- push:
- branches:
- - master
-
-
-jobs:
- develop_update:
- runs-on: ubuntu-latest
-
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 0
-
- - name: Checkout develop
- run: |
- git fetch origin master develop
- git checkout develop
-
- - name: Check if branch locked
- id: check_locked
- uses: andstor/file-existence-action@v1
- with:
- files: ".locked"
-
- - name: Update develop from master
- if: steps.check_locked.outputs.files_exists == 'false'
- run: |
- git config --global user.name "QMK Bot"
- git config --global user.email "hello@qmk.fm"
- git merge origin/master
- git push origin develop
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
deleted file mode 100644
index 1ee3ae3964..0000000000
--- a/.github/workflows/docs.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Generate Docs
-
-on:
- push:
- branches:
- - master
- paths:
- - 'tmk_core/**'
- - 'quantum/**'
- - 'platforms/**'
- - 'docs/**'
- - '.github/workflows/docs.yml'
-
-jobs:
- generate:
- runs-on: ubuntu-latest
- container: qmkfm/qmk_cli
-
- # protect against those who develop with their fork on master
- if: github.repository == 'qmk/qmk_firmware'
-
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 1
-
- - name: Install dependencies
- run: |
- apt-get update && apt-get install -y rsync nodejs npm doxygen
- npm install -g moxygen
-
- - name: Build docs
- run: |
- qmk --verbose generate-docs
-
- - name: Deploy
- uses: JamesIves/github-pages-deploy-action@3.7.1
- with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BASE_BRANCH: master
- BRANCH: gh-pages
- FOLDER: .build/docs
- GIT_CONFIG_EMAIL: hello@qmk.fm
diff --git a/.github/workflows/format_push.yaml b/.github/workflows/format_push.yaml
index b79130f17a..baa9483b63 100644
--- a/.github/workflows/format_push.yaml
+++ b/.github/workflows/format_push.yaml
@@ -1,10 +1,6 @@
name: Lint Format
-on:
- push:
- branches:
- - master
- - develop
+on: push
jobs:
lint:
diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml
index 01793ffe9d..d935a548a3 100644
--- a/.github/workflows/unit_test.yml
+++ b/.github/workflows/unit_test.yml
@@ -2,6 +2,8 @@ name: Unit Tests
on:
push:
+ branches:
+ - 'firmware**'
pull_request:
paths:
- 'builddefs/**'