Merge branch 'change-encode-key-index-mapping' into variants #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Firmware Deployment | |
on: | |
push: | |
branches: [variants, variants-dev] | |
paths: | |
- ".github/workflows/firmware_deployment.yml" | |
- "firmware/ci/**/*.ts" | |
- "firmware/Makefile" | |
- "firmware/workers/*.mk" | |
- "firmware/src/**" | |
- "firmware/project_packages/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: install arm-none-eabi-gcc | |
uses: fiam/arm-none-eabi-gcc@v1 | |
with: | |
release: "10-2020-q4" | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "16.x" | |
- uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: ./firmware/ci | |
- name: Checkout store repo | |
uses: actions/checkout@v2 | |
with: | |
repository: kermite-org/KermiteResourceStore | |
path: "./firmware/KRS" | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
- name: Check Firmware IDs | |
run: yarn checkFirmwareIds | |
working-directory: ./firmware/ci | |
- name: Update All Project Distributions | |
run: yarn updateAllProjectDistributions | |
working-directory: ./firmware/ci | |
- name: Push resources to KermiteResourceStore | |
uses: cpina/github-action-push-to-another-repository@master | |
if: github.ref == 'refs/heads/variants' | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source-directory: "./firmware/KRS" | |
destination-github-username: "github-actions[bot]" | |
destination-repository-username: "kermite-org" | |
destination-repository-name: "KermiteResourceStore" | |
target-branch: "master" | |
user-email: 41898282+github-actions[bot]@users.noreply.github.com | |
commit-message: "resources updated in github actions" |