mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-12-24 08:28:32 -07:00
40 lines
905 B
YAML
40 lines
905 B
YAML
#
|
|
# deploy.yml
|
|
#
|
|
# Rebuild the bugfix-2.1.x branch whenever 'import-2.1.x' is pushed
|
|
#
|
|
|
|
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- import-2.1.x
|
|
paths:
|
|
- 'config/**'
|
|
- 'bin/mfconfig'
|
|
|
|
jobs:
|
|
deploy:
|
|
if: github.repository == 'MarlinFirmware/Configurations'
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # Fetch all history for all branches and tags
|
|
token: ${{ secrets.GITHUB_TOKEN }} # Use the built-in token for authentication
|
|
|
|
- name: Fetch all branches
|
|
run: git fetch --all
|
|
|
|
- name: Set up Git identity
|
|
run: |
|
|
git config --global user.email "github-actions@github.com"
|
|
git config --global user.name "GitHub Actions"
|
|
|
|
- name: Build bugfix-2.1.x
|
|
run: bin/mfconfig CI
|
|
|
|
- name: Push bugfix-2.1.x
|
|
run: git push -f origin WORK:bugfix-2.1.x
|