forked from favoyang/unity-addressable-importer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: semantic-release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
with: | ||
extra_plugins: | | ||
@semantic-release/[email protected] | ||
@semantic-release/[email protected] | ||
branch: master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Split upm branch | ||
# run: | | ||
# echo '### head info' | ||
# git log -1 | ||
|
||
# echo '### delete local upm branch' | ||
# git branch -d upm &> /dev/null || echo local upm branch not found | ||
# echo | ||
|
||
# echo '### split upm branch' | ||
# git subtree split -P "$PKG_ROOT" -b upm | ||
|
||
# echo '### checkout upm branch' | ||
# git checkout upm | ||
|
||
# if [[ -d "Samples" ]]; then | ||
# echo '### move Samples => Samples~' | ||
# git mv Samples Samples~ | ||
# rm -f Samples.meta | ||
# git config --global user.name 'github-bot' | ||
# git config --global user.email '[email protected]' | ||
# git commit -am "fix: Samples => Samples~" | ||
# fi | ||
|
||
# echo '### force overwrite remote upm branch' | ||
# git push -f -u origin upm | ||
# env: | ||
# PKG_ROOT: PATH_TO_PKG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,7 @@ sysinfo.txt | |
# Builds | ||
*.apk | ||
*.unitypackage | ||
|
||
# npm | ||
node_modules | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.all-contributorsrc | ||
.github | ||
.releaserc.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"tagFormat": "v${version}", | ||
"plugins": [ | ||
["@semantic-release/commit-analyzer", { "preset": "angular" }], | ||
"@semantic-release/release-notes-generator", | ||
["@semantic-release/changelog", { "preset": "angular" }], | ||
["@semantic-release/npm", { "npmPublish": false, "pkgRoot": "." }], | ||
["@semantic-release/git", { | ||
"assets": ["package.json", "CHANGELOG.md"], | ||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
}], | ||
"@semantic-release/github" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters