-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
Support UPM Package
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- release | ||
jobs: | ||
split-upm: | ||
name: split upm branch | ||
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 # recreate the upm branch each time | ||
git mv "$PKG_ROOT" "src/$UPM_ROOT" | ||
git mv "src/$UPM_ROOT" . | ||
git mv demo/Assets demo/Sample | ||
git mv demo/Sample $UPM_ROOT | ||
git mv doc Docs | ||
git mv Docs $UPM_ROOT | ||
git mv LICENSE $UPM_ROOT | ||
git mv README.md $UPM_ROOT | ||
git mv SECURITY.md $UPM_ROOT | ||
git mv CHANGELOG.md $UPM_ROOT | ||
git mv CONTRIBUTING.md $UPM_ROOT | ||
echo "********************** ROOT **********************" | ||
ls | ||
git add "$UPM_ROOT" | ||
git config --global user.name 'github-bot' | ||
git config --global user.email 'github-bot@users.noreply.github.com' | ||
git commit -m "create release folder" | ||
git subtree split -P "$UPM_ROOT" -b upm # create the upm branch | ||
git checkout upm # checkout the branch | ||
if [[ -d "Sample/Packages" ]]; then | ||
git rm -rf Sample/Packages | ||
git rm Sample/Packages.meta --ignore-unmatch | ||
git rm Sample/packages.config | ||
git rm Sample/packages.config.meta --ignore-unmatch | ||
fi | ||
if [[ -d "Properties" ]]; then | ||
git rm -rf Properties | ||
git rm Properties.meta --ignore-unmatch | ||
git rm Proyecto26.RestClient.csproj | ||
git rm Proyecto26.RestClient.csproj.meta --ignore-unmatch | ||
git rm Proyecto26.RestClient.nuspec | ||
git rm Proyecto26.RestClient.nuspec.meta --ignore-unmatch | ||
git rm packages.config | ||
git rm packages.config.meta --ignore-unmatch | ||
fi | ||
git commit -am "fix: src => root" | ||
echo "********************** ROOT **********************" | ||
ls | ||
git push -u origin upm --force # commit the branch | ||
env: | ||
PKG_ROOT: src/Proyecto26.RestClient | ||
UPM_ROOT: Release |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using System.Text; | ||
using System.Collections; | ||
using UnityEngine; | ||
using UnityEngine.Networking; | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System; | ||
|
||
namespace Proyecto26 | ||
{ | ||
public class RequestException : Exception | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using UnityEngine.Networking; | ||
using System; | ||
using UnityEngine.Networking; | ||
|
||
namespace Proyecto26 | ||
{ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.