From 8906b2eab5c3e6bbae5375351af28372489c15a6 Mon Sep 17 00:00:00 2001 From: andrea Date: Sun, 15 Mar 2026 18:04:59 +0100 Subject: [PATCH] first test with CD --- .github/workflows/cd.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..31a84da --- /dev/null +++ b/.github/workflows/cd.yml @@ -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 }}