Skip to content

Commit 3723bc0

Browse files
committed
fixing workflow
1 parent 07cba5c commit 3723bc0

File tree

1 file changed

+8
-33
lines changed

1 file changed

+8
-33
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,17 @@
1-
name: Publish NuGet Package
2-
on:
3-
push:
4-
tags:
5-
- "*"
1+
name: tests
2+
3+
on: [push, pull_request]
64

75
jobs:
86
build:
97
runs-on: ubuntu-latest
108
container:
11-
image: mcr.microsoft.com/dotnet/sdk:10.0
9+
image: mcr.microsoft.com/dotnet/nightly/sdk:10.0-preview-alpine
1210

1311
steps:
1412
- uses: actions/checkout@v4
15-
16-
- name: publish RustParserCs
17-
run: |
18-
dotnet publish -c Release
19-
dotnet pack
20-
dotnet nuget push --skip-duplicate nupkg/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
21-
working-directory: ./Parsers/RustParserCs
22-
env:
23-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
24-
25-
- name: publish Prover
26-
run: |
27-
dotnet publish -c Release
28-
dotnet pack
29-
dotnet nuget push --skip-duplicate nupkg/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
30-
working-directory: ./Prover
31-
env:
32-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
33-
34-
- name: publish Tool
13+
14+
- name: Run tests
3515
run: |
36-
dotnet publish -c Release
37-
dotnet pack
38-
dotnet nuget push --skip-duplicate nupkg/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
39-
working-directory: ./Tool
40-
env:
41-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
42-
16+
dotnet test
17+
working-directory: .

0 commit comments

Comments
 (0)