Skip to content

Update marlin-build.yml #5

Update marlin-build.yml

Update marlin-build.yml #5

Workflow file for this run

name: Build Marlin Firmware
on:
push:
branches:
- master
#paths:
# - 'Firmware/Configuration/**.h'
jobs:
build_and_push:
name: Compile and Push Firmware
runs-on: ubuntu-latest
env:
BOARD: LPC1768
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Compile firmware
run: |
docker run \
-u root:root \
-e BOARD \
-e USE_TAG=2.1.2.2 \
-v $(pwd)/Firmware/Builds:/home/platformio/build \
-v $(pwd)/Firmware/Configuration:/home/platformio/CustomConfiguration \
frealmyr/marlin-build:latest
- name: Push firmware
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Compiled firmware"
git push "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"