88 if : " !contains(github.event.head_commit.message, 'skip ci')"
99 name : Release
1010 runs-on : ubuntu-latest
11+ env :
12+ PKG_ROOT : " Assets/MXR.SDK"
1113 steps :
12- - uses : actions/checkout@v3
14+ - uses : actions/checkout@v4
1315 with :
1416 fetch-depth : 0
1517
16- # - name: Semantic Release
17- # id: semantic
18- # uses: cycjimmy/semantic-release-action@v3
19- # with:
20- # extra_plugins: |
21- # @semantic-release/changelog
22- # @semantic-release/git
23- # branch: master
24- # env:
25- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+ - name : Check if README.md has changed
19+ id : readme_check
20+ run : |
21+ if git diff --name-only HEAD~1 HEAD | grep -q "README.md"; then
22+ echo "README_CHANGED=true" >> $GITHUB_ENV
23+ else
24+ echo "README_CHANGED=false" >> $GITHUB_ENV
25+ fi
2626
27+ - name : Update package README
28+ if : env.README_CHANGED == 'true'
29+ run : |
30+ cp README.md "$PKG_ROOT/README.md"
31+ git config --global user.name 'github-bot'
32+ git config --global user.email 'github-bot@users.noreply.github.com'
33+ git commit -am "Updated package README from root README"
34+ git push -f -u origin master
35+
2736 - name : Create/Update upm@latest branch
2837 run : |
2938 git branch -d upm@latest &> /dev/null || echo upm@latest branch not found
3645 git config --global user.email 'github-bot@users.noreply.github.com'
3746 git commit -am "fix: Samples => Samples~"
3847 fi
39- git push -f -u origin upm@latest
40- env :
41- PKG_ROOT : " Assets/MXR.SDK"
42-
43- # - name: Create UPM git tag
44- # if: steps.semantic.outputs.new_release_published == 'true'
45- # run: |
46- # git tag $TAG upm@latest
47- # git push origin --tags
48- # env:
49- # TAG: upm/v${{ steps.semantic.outputs.new_release_version }}
48+ git push -f -u origin upm@latest
0 commit comments