-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
40 lines (33 loc) · 905 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# 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 "[email protected]"
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