Skip to content

Commit 56d8e27

Browse files
Create ReleaseNoUnityFiles.yml
1 parent 089f642 commit 56d8e27

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ReleaseNoUnityFiles
2+
3+
env:
4+
SRC: unity
5+
DST: main
6+
7+
on:
8+
release:
9+
branches:
10+
- ${{ env.SRC }}
11+
workflow_dispatch:
12+
13+
jobs:
14+
main:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Git
19+
run: |
20+
git config user.name 'github-actions[bot]'
21+
git config user.email 'github-actions[bot]@users.noreply.github.com'
22+
git fetch origin ${{ env.DST }}
23+
git checkout ${{ env.DST }}
24+
git pull -ff origin ${{ env.SRC }}:${{ env.DST }}
25+
git add --all
26+
git rm -f --ignore-unmatch \*.meta
27+
git rm -f --ignore-unmatch \*.asmdef
28+
git rm -f --ignore-unmatch \*.asmref
29+
git commit -m "[bot] ReleaseNoUnityFiles"
30+
git push origin

0 commit comments

Comments
 (0)