@@ -2,25 +2,25 @@ name: CI
22on :
33 push :
44 branches :
5- - master
6-
5+ - master
6+
77jobs :
88 semantic-release :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v3
12- with :
13- fetch-depth : 0
14- - uses : actions/setup-node@v2
15- with :
16- node-version : 14
17- - name : Semantic release
18- id : semantic
19- uses : cycjimmy/semantic-release-action@v3
20- with :
21- semantic_version : 17
22- env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11+ - uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : 16
17+ - name : Semantic release
18+ id : semantic
19+ uses : cycjimmy/semantic-release-action@v4
20+ with :
21+ semantic_version : 17
22+ env :
23+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2424 outputs :
2525 new_release_published : ${{ steps.semantic.outputs.new_release_published }}
2626 new_release_version : ${{ steps.semantic.outputs.new_release_version }}
@@ -29,26 +29,26 @@ jobs:
2929 needs : semantic-release
3030 runs-on : ubuntu-latest
3131 steps :
32- - uses : actions/checkout@v3
33- with :
34- fetch-depth : 0
35- - name : Create upm branch
36- run : |
37- git branch -d upm &> /dev/null || echo upm branch not found
38- git subtree split -P "$PKG_ROOT" -b upm
39- git checkout upm
40- if [[ -d "Samples" ]]; then
41- git mv Samples Samples~
42- rm -f Samples.meta
43- git config --global user.name 'github-bot'
44- git config --global user.email '[email protected] ' 45- git commit -am "fix: Samples => Samples~"
46- fi
47- git push -f -u origin upm
48- env :
49- PKG_ROOT : Assets/Package
50- - name : Create upm git tag
51- if : needs.semantic-release.outputs.new_release_published == 'true'
52- run : |
53- git tag ${{ needs.semantic-release.outputs.new_release_version }} upm
54- git push origin --tags
32+ - uses : actions/checkout@v4
33+ with :
34+ fetch-depth : 0
35+ - name : Create upm branch
36+ run : |
37+ git branch -d upm &> /dev/null || echo upm branch not found
38+ git subtree split -P "$PKG_ROOT" -b upm
39+ git checkout upm
40+ if [[ -d "Samples" ]]; then
41+ git mv Samples Samples~
42+ rm -f Samples.meta
43+ git config --global user.name 'github-bot'
44+ git config --global user.email '[email protected] ' 45+ git commit -am "fix: Samples => Samples~"
46+ fi
47+ git push -f -u origin upm
48+ env :
49+ PKG_ROOT : Assets/Package
50+ - name : Create upm git tag
51+ if : needs.semantic-release.outputs.new_release_published == 'true'
52+ run : |
53+ git tag ${{ needs.semantic-release.outputs.new_release_version }} upm
54+ git push origin --tags
0 commit comments