-
Notifications
You must be signed in to change notification settings - Fork 399
29 lines (27 loc) · 873 Bytes
/
main.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
name: Publish Package
on:
push:
branches:
- master
jobs:
split-upm:
name: split upm branch (force)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: split upm branch
run: |
git branch -d upm &> /dev/null || echo upm branch not found
mkdir -p 'Samples~'
git mv Assets/Examples 'Samples~/Examples'
git subtree split -P "$PKG_ROOT" -b upm
git checkout upm
git config --global 'user.name' 'github-bot'
git config --global 'user.email' '[email protected]'
git add 'Samples~' 'Editor' 'Editor.meta' 'Runtime' 'Runtime.meta' 'package.json' 'package.json.meta'
git commit -m "Publish new package"
git push -f -u origin upm
env:
PKG_ROOT: Assets/com.alelievr.NodeGraphProcessor/