forked from lmg-anon/mikupad
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.25 KB
/
compile_mikupad.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
name: compile mikupad
on:
push:
branches:
- lmg-anon/main
- use
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Add upstream
run: |
git remote add upstream https://github.com/lmg-anon/mikupad.git
git fetch upstream
- name: Merge Upstream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout use
git merge upstream/main --allow-unrelated-histories
- name: run compile.sh
run: chmod +x compile.sh; ./compile.sh
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "mikudayo~[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -f mikupad_compiled.html
git commit -m "Update mikupad_compiled.html" || echo "No changes to commit"
git push origin use || echo "Nothing to push"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mikupad_compiled
path: mikupad_compiled.html