Skip to content

Commit fdd7755

Browse files
committed
update release script
1 parent 88c78dd commit fdd7755

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"
4444
}
4545
46-
# Check each project for changes and update versions
47-
for proj in $(find . -name "*.csproj"); do
46+
# Check each project for changes and update versions in MimeTypeCore folder
47+
for proj in $(find ./MimeTypeCore -name "*.csproj"); do
4848
PROJECT_NAME=$(basename "$proj")
4949
PROJECT_DIR=$(dirname "$proj")
5050
@@ -127,16 +127,25 @@ jobs:
127127
- name: Restore dependencies
128128
if: env.SHOULD_RELEASE == 'true'
129129
run: dotnet restore
130+
working-directory: ./MimeTypeCore
130131

131132
# Build solution
132133
- name: Build
133134
if: env.SHOULD_RELEASE == 'true'
134135
run: dotnet build --configuration Release --no-restore
136+
working-directory: ./MimeTypeCore
137+
138+
# Run tests
139+
- name: Test
140+
if: env.SHOULD_RELEASE == 'true'
141+
run: dotnet test --configuration Release --no-build
142+
working-directory: ./MimeTypeCore
135143

136144
# Create NuGet packages
137145
- name: Pack
138146
if: env.SHOULD_RELEASE == 'true'
139-
run: dotnet pack --configuration Release --no-build --output nupkgs
147+
run: dotnet pack --configuration Release --no-build --output ../nupkgs
148+
working-directory: ./MimeTypeCore
140149

141150
# Create GitHub release
142151
- name: Create Release

0 commit comments

Comments
 (0)