1
0
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:
Oliver Booth 2023-04-02 17:42:59 +01:00
parent ebc8734410
commit fb20e4d1e9
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025
3 changed files with 26 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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