Create m5atom-matrix.yml

This commit is contained in:
Darrell 2022-02-19 14:04:03 -05:00 committed by GitHub
parent 22de5f91e0
commit c55e939f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -1,5 +1,4 @@
name: Remote run m5atom-matrix name: Remote run m5atom-matrix
on: on:
push: push:
branches: branches:
@ -9,11 +8,6 @@ on:
pull_request: pull_request:
release: release:
types: [published] types: [published]
env:
PIO_USERNAME: ""
PIO_PASSWORD: ""
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -43,6 +37,6 @@ jobs:
run: echo "PLATFORMIO_BUILD_FLAGS=-DVERSION='\"${GITHUB_REF#refs/*/}\"'" >> $GITHUB_ENV run: echo "PLATFORMIO_BUILD_FLAGS=-DVERSION='\"${GITHUB_REF#refs/*/}\"'" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
- name: Run PlatformIO - name: Run PlatformIO
run: pio account login --username="$PIO_USERNAME" --password="$PIO_PASSWORD" run: pio account login --username="${secrets.PIO_USERNAME}" --password="${secrets.PIO_PASSWORD}"
- name: Run PlatformIO - name: Run PlatformIO
run: pio remote run -e m5atom-matrix run: pio remote run -e m5atom-matrix