mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 20:18:47 +00:00
[ci skip] ci: copy artifacts before git diff
Also removes redundant shell specifier on git diff step. GitHub uses bash by default.
This commit is contained in:
parent
ebc8734410
commit
fb20e4d1e9
16
.github/workflows/nightly.yml
vendored
16
.github/workflows/nightly.yml
vendored
@ -58,21 +58,23 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Debug/netstandard2.1/X10D.dll"
|
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Debug/netstandard2.1/X10D.dll"
|
||||||
cp package.json upm/package.json
|
cp package.json upm/package.json
|
||||||
|
|
||||||
- name: Check for changes
|
- name: Copy built artifacts to upm
|
||||||
run: |
|
run: |
|
||||||
cd upm
|
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
|
||||||
|
|
||||||
|
- name: Check for changes
|
||||||
|
run: |
|
||||||
git diff --quiet
|
git diff --quiet
|
||||||
shell: bash
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Commit update
|
- name: Commit update
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
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.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add X10D.dll
|
git add X10D.dll
|
||||||
|
14
.github/workflows/prerelease.yml
vendored
14
.github/workflows/prerelease.yml
vendored
@ -65,20 +65,22 @@ jobs:
|
|||||||
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll"
|
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll"
|
||||||
cp package.json upm/package.json
|
cp package.json upm/package.json
|
||||||
|
|
||||||
- name: Check for changes
|
- name: Copy built artifacts to upm
|
||||||
run: |
|
run: |
|
||||||
cd upm
|
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
|
||||||
|
|
||||||
|
- name: Check for changes
|
||||||
|
run: |
|
||||||
git diff --quiet
|
git diff --quiet
|
||||||
shell: bash
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Commit update
|
- name: Commit update
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
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.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add X10D.dll
|
git add X10D.dll
|
||||||
|
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@ -65,20 +65,22 @@ jobs:
|
|||||||
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll"
|
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll"
|
||||||
cp package.json upm/package.json
|
cp package.json upm/package.json
|
||||||
|
|
||||||
- name: Check for changes
|
- name: Copy built artifacts to upm
|
||||||
run: |
|
run: |
|
||||||
cd upm
|
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
|
||||||
|
|
||||||
|
- name: Check for changes
|
||||||
|
run: |
|
||||||
git diff --quiet
|
git diff --quiet
|
||||||
shell: bash
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Commit update
|
- name: Commit update
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
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.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add X10D.dll
|
git add X10D.dll
|
||||||
@ -88,3 +90,4 @@ jobs:
|
|||||||
git add package.json
|
git add package.json
|
||||||
git commit -m "Update upm branch ($GITHUB_SHA)"
|
git commit -m "Update upm branch ($GITHUB_SHA)"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user