Skip to content

Commit d94490b

Browse files
authored
Fix building of release artifacts in GitHub Actions (#375)
1 parent aa63973 commit d94490b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
VERSION="${arrTag[2]}"
3131
VERSION="${VERSION//v}"
3232
echo "$VERSION"
33-
dotnet pack --output artifacts --configuration Release -p:Version=$VERSION
33+
dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:Version=$VERSION
3434
3535
- name: Push with dotnet
3636
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

.github/workflows/staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: dotnet test --configuration Release --logger GitHubActions
2929

3030
- name: Pack with dotnet
31-
run: dotnet pack --output artifacts --configuration Release -p:PackageVersion=3.0.0-preview-$GITHUB_RUN_NUMBER
31+
run: dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:PackageVersion=3.0.0-preview-$GITHUB_RUN_NUMBER
3232

3333
- name: Push with dotnet
3434
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/esprimadotnet/api/v2/package

0 commit comments

Comments
 (0)