This commit is contained in:
35
.github/workflows/cd.yml
vendored
Normal file
35
.github/workflows/cd.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Arduino Pong CD
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Arduino CLI
|
||||
run: |
|
||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
||||
echo "$HOME/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install Board Core and Libs
|
||||
run: |
|
||||
arduino-cli core update-index
|
||||
arduino-cli core install arduino:renesas_uno
|
||||
arduino-cli lib install "Arduino_LED_Matrix"
|
||||
|
||||
- name: Build Binary
|
||||
run: make compile
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
build/arduino.renesas_uno.unor4wifi/arduino_pong.ino.bin
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user