diff --git a/.github/workflows/m5atom-matrix.yml b/.github/workflows/m5atom-matrix.yml index 564eac7..91cef9e 100644 --- a/.github/workflows/m5atom-matrix.yml +++ b/.github/workflows/m5atom-matrix.yml @@ -1,5 +1,4 @@ name: Remote run m5atom-matrix - on: push: branches: @@ -9,11 +8,6 @@ on: pull_request: release: types: [published] - -env: - PIO_USERNAME: "" - PIO_PASSWORD: "" - jobs: build: runs-on: ubuntu-latest @@ -43,6 +37,6 @@ jobs: run: echo "PLATFORMIO_BUILD_FLAGS=-DVERSION='\"${GITHUB_REF#refs/*/}\"'" >> $GITHUB_ENV if: startsWith(github.ref, 'refs/tags/v') - 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 run: pio remote run -e m5atom-matrix