Skip to content

Commit a5aade2

Browse files
authored
Update dotnet-unit-test.yml (#5)
* Update dotnet-unit-test.yml * Update publish-nuget-package.yml * Update publish-upm-package.yml * Update publish-upm-package.yml
1 parent 62735bd commit a5aade2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/dotnet-unit-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
with:
1919
dotnet-version: 7.0.3xx # https://github.com/microsoft/testfx/issues/1733
2020
- name: Restore dependencies
21-
run: dotnet restore Standard
21+
run: dotnet restore StandardLibrary
2222
- name: Build
23-
run: dotnet build --no-restore Standard
23+
run: dotnet build --no-restore StandardLibrary
2424
- name: Test
25-
run: dotnet test --no-build --verbosity normal Standard
25+
run: dotnet test --no-build --verbosity normal StandardLibrary

.github/workflows/publish-nuget-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
with:
1919
dotnet-version: 6.0.x
2020
- name: Restore dependencies
21-
run: dotnet restore Standard
21+
run: dotnet restore StandardLibrary
2222
- name: Pack
2323
run: |
24-
cd Standard/MyPackage
24+
cd StandardLibrary/MyPackage
2525
dotnet pack -c Release -o out
2626
- name: Publish
2727
env:
2828
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
29-
run: dotnet nuget push ./Standard/MyPackage/out/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
29+
run: dotnet nuget push ./StandardLibrary/MyPackage/out/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json

.github/workflows/publish-upm-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
upm-release:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- uses: actions/checkout@v3
1416
- name: Create Release for OpenUPM

0 commit comments

Comments
 (0)