mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 03:45:41 +00:00
ci(upm): automate upm branch update (resolves #69)
This commit is contained in:
parent
a09492d418
commit
7a119fc3c1
22
.github/workflows/nightly.yml
vendored
22
.github/workflows/nightly.yml
vendored
@ -41,3 +41,25 @@ jobs:
|
|||||||
|
|
||||||
- name: Push NuGet Package to nuget.org
|
- name: Push NuGet Package to nuget.org
|
||||||
run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
|
run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
|
||||||
|
|
||||||
|
- name: Checkout upm branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: upm
|
||||||
|
path: upm
|
||||||
|
|
||||||
|
- name: Commit update
|
||||||
|
run: |
|
||||||
|
cd upm
|
||||||
|
cp ../X10D/bin/Debug/netstandard2.1/X10D.dll ./X10D.dll
|
||||||
|
cp ../X10D/bin/Debug/netstandard2.1/X10D.xml ./X10D.xml
|
||||||
|
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll
|
||||||
|
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
git add X10D.dll
|
||||||
|
git add X10D.Unity.dll
|
||||||
|
git add X10D.xml
|
||||||
|
git add X10D.Unity.xml
|
||||||
|
git commit -m "Update upm branch ($GITHUB_SHA)"
|
||||||
|
git push
|
||||||
|
22
.github/workflows/prerelease.yml
vendored
22
.github/workflows/prerelease.yml
vendored
@ -47,3 +47,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
||||||
|
- name: Checkout upm branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: upm
|
||||||
|
path: upm
|
||||||
|
|
||||||
|
- name: Commit update
|
||||||
|
run: |
|
||||||
|
cd upm
|
||||||
|
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll
|
||||||
|
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml
|
||||||
|
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll
|
||||||
|
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
git add X10D.dll
|
||||||
|
git add X10D.Unity.dll
|
||||||
|
git add X10D.xml
|
||||||
|
git add X10D.Unity.xml
|
||||||
|
git commit -m "Update upm branch ($GITHUB_SHA)"
|
||||||
|
git push
|
||||||
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -47,3 +47,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Checkout upm branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: upm
|
||||||
|
path: upm
|
||||||
|
|
||||||
|
- name: Commit update
|
||||||
|
run: |
|
||||||
|
cd upm
|
||||||
|
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll
|
||||||
|
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml
|
||||||
|
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll
|
||||||
|
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
git add X10D.dll
|
||||||
|
git add X10D.Unity.dll
|
||||||
|
git add X10D.xml
|
||||||
|
git add X10D.Unity.xml
|
||||||
|
git commit -m "Update upm branch ($GITHUB_SHA)"
|
||||||
|
git push
|
||||||
|
Loading…
Reference in New Issue
Block a user