-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (50 loc) · 1.31 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Build nightly
on:
push:
branches: ["master"]
paths-ignore:
- 'README.md'
- archived
- default
- staging
- template
- tools
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
name: Build with Docker using devkitARM
steps:
- uses: actions/checkout@v3
- name: Setup environment
run: git config --global safe.directory '*'
- name: Build all drivers
run: |
chmod +x build.sh
./build.sh
- uses: actions/upload-artifact@v3
with:
path: out
name: build
- name: Checkout artifact branch
uses: actions/checkout@v3
with:
path: artifacts
ref: builds
- name: Commit artifacts
continue-on-error: true
run: |
rm -rf artifacts/*.dldi
cp -r out/*.dldi artifacts/
cd artifacts
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Build: ${{ github.sha }}"
- name: Push changes
uses: ad-m/github-push-action@master
continue-on-error: true
with:
directory: artifacts
branch: builds