Skip to content

Commit b276b66

Browse files
Copilotstesee
andcommitted
Remove non-existent CLI project references from workflow
Co-authored-by: stesee <168659+stesee@users.noreply.github.com>
1 parent 76dee20 commit b276b66

1 file changed

Lines changed: 3 additions & 58 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: .NET build and test
22
env:
3-
CURRENT_VERSION: 3.2.${{ github.run_number }}
3+
CURRENT_VERSION: 3.1.${{ github.run_number }}
44
LAST_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
55

66
on:
@@ -27,30 +27,6 @@ jobs:
2727
run: dotnet restore
2828
- name: Build
2929
run: dotnet build --configuration Release --no-restore
30-
31-
- name: Publish SkiaSharpCompare.Cli (Linux)
32-
if: runner.os == 'Linux'
33-
run: |
34-
dotnet publish SkiaSharpCompare.Cli/SkiaSharpCompare.Cli.csproj -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true -o ./artifacts/cli/linux-x64
35-
36-
- name: Publish SkiaSharpCompare.Cli (macOS)
37-
if: runner.os == 'macOS'
38-
run: |
39-
dotnet publish SkiaSharpCompare.Cli/SkiaSharpCompare.Cli.csproj -c Release -r osx-x64 --self-contained true -p:PublishSingleFile=true -o ./artifacts/cli/osx-x64
40-
41-
- name: Publish SkiaSharpCompare.Cli (Windows)
42-
if: runner.os == 'Windows'
43-
shell: powershell
44-
run: |
45-
dotnet publish SkiaSharpCompare.Cli/SkiaSharpCompare.Cli.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -o ./artifacts/cli/win-x64
46-
dotnet publish SkiaSharpCompare.Cli/SkiaSharpCompare.Cli.csproj -c Release -r win-arm64 --self-contained true -p:PublishSingleFile=true -o ./artifacts/cli/win-arm64
47-
48-
- name: Upload CLI artifacts
49-
uses: actions/upload-artifact@v4
50-
with:
51-
name: cli-artifacts-${{ matrix.os }}
52-
path: ./artifacts/cli
53-
5430
- name: Test
5531
run: dotnet test --no-build --verbosity normal --configuration Release
5632

@@ -71,21 +47,6 @@ jobs:
7147
run: dotnet restore
7248
- name: Build
7349
run: dotnet build --configuration Release --no-restore
74-
- name: Download CLI artifacts
75-
uses: actions/download-artifact@v4.1.3
76-
with:
77-
path: ./artifacts_download
78-
- name: Compress downloaded CLI artifacts
79-
run: |
80-
# Zip any directories under artifacts_download so gh release receives files, not directories
81-
find ./artifacts_download -type d -mindepth 1 -print0 | while IFS= read -r -d '' dir; do
82-
if [ -e "${dir}.zip" ]; then
83-
echo "Skipping existing ${dir}.zip"
84-
else
85-
echo "Zipping $dir -> ${dir}.zip"
86-
zip -r "${dir}.zip" "$dir"
87-
fi
88-
done
8950
- name: NugetPush
9051
env:
9152
NUGET_TOKEN_EXISTS: ${{ secrets.NUGET_TOKEN }}
@@ -97,8 +58,7 @@ jobs:
9758
GITHUB_TOKEN: ${{ github.TOKEN }}
9859
if: env.GITHUB_TOKEN != ''
9960
run: |
100-
# Attach all downloaded CLI artifacts (zipped) and nupkg files
101-
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg ./artifacts_download/**/*.zip --generate-notes
61+
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg --generate-notes
10262
10363
deployTest:
10464
if: ${{ !startsWith(github.ref, 'refs/heads/release') }}
@@ -117,21 +77,6 @@ jobs:
11777
run: dotnet restore
11878
- name: Build
11979
run: dotnet build --configuration Release --no-restore
120-
- name: Download CLI artifacts
121-
uses: actions/download-artifact@v4.1.3
122-
with:
123-
path: ./artifacts_download
124-
- name: Compress downloaded CLI artifacts
125-
run: |
126-
# Zip any directories under artifacts_download so gh release receives files, not directories
127-
find ./artifacts_download -type d -mindepth 1 -print0 | while IFS= read -r -d '' dir; do
128-
if [ -e "${dir}.zip" ]; then
129-
echo "Skipping existing ${dir}.zip"
130-
else
131-
echo "Zipping $dir -> ${dir}.zip"
132-
zip -r "${dir}.zip" "$dir"
133-
fi
134-
done
13580
- name: NugetPush
13681
env:
13782
NUGET_TOKEN_EXISTS: ${{ secrets.NUGET_TEST_TOKEN }}
@@ -145,4 +90,4 @@ jobs:
14590
GITHUB_TOKEN: ${{ github.TOKEN }}
14691
if: env.GITHUB_TOKEN != ''
14792
run: |
148-
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg ./artifacts_download/**/*.zip --prerelease --generate-notes
93+
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg --prerelease --generate-notes

0 commit comments

Comments
 (0)