Workflow file for this run
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
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
- name: Build PlatformIO Project | ||
run: pio run | ||
# - name: Archive production artifacts | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: firmware | ||
# path: .pio/build/**/mobiflight*.hex | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: .pio/build/d1_mini/firmware.bin | ||
name: "marquettino-d1_mini-${{ github.ref_name }}.bin" | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: .pio/build/nodemcuv2/firmware.bin | ||
name: "marquettino-nodemcuv2-${{ github.ref_name }}.bin" | ||
build_release_binaries: | ||
needs: create_release | ||
Check failure on line 50 in .github/workflows/create-release.yaml GitHub Actions / .github/workflows/create-release.yamlInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# board: ["nodemcu", "d1_mini"] | ||
board: ["d1_mini"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout code | ||
- uses: arduino/compile-sketches@v1.0.1 | ||
name: Compile Sketch | ||
with: | ||
cli-compile-flags: | | ||
- --output-dir | ||
- "${{ matrix.board }}" | ||
- -v | ||
fqbn: "esp8266:esp8266:${{ matrix.board }} https://arduino.esp8266.com/stable/package_esp8266com_index.json" | ||
sketch-paths: | | ||
- ./ | ||
- name: Upload binary | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_path: "${{ matrix.board }}/MarQueTT.ino.bin" | ||
asset_name: "marquettino-${{ matrix.board }}-${{ github.ref_name }}.bin" | ||
asset_content_type: binary/octet-stream | ||