|
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | permissions: |
11 | 11 | contents: read |
| 12 | + id-token: write |
12 | 13 | steps: |
13 | 14 | - name: Setup .NET 10 |
14 | 15 | uses: actions/setup-dotnet@v5 |
@@ -45,38 +46,48 @@ jobs: |
45 | 46 | # Four numbers: the version without its prerelease or build suffix, and a zero. |
46 | 47 | echo "file_version=${version%%[-+]*}.0" >> $GITHUB_OUTPUT |
47 | 48 |
|
48 | | - - name: 'Pack and publish AngouriMath' |
| 49 | + - name: 'Pack AngouriMath' |
49 | 50 | run: | |
50 | 51 | cd Sources/AngouriMath |
51 | 52 | dotnet restore AngouriMath.csproj |
52 | 53 | dotnet build AngouriMath.csproj -c release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
53 | 54 | dotnet pack AngouriMath.csproj -c release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
54 | | - cd bin/release |
55 | | - dotnet nuget push AngouriMath.${{ steps.version.outputs.version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source nuget.org |
56 | | - |
57 | | - - name: 'Pack and publish AngouriMath.FSharp' |
| 55 | +
|
| 56 | + - name: 'Pack AngouriMath.FSharp' |
58 | 57 | run: | |
59 | 58 | cd Sources/Wrappers/AngouriMath.FSharp |
60 | 59 | dotnet restore |
61 | 60 | dotnet build -c Release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
62 | 61 | dotnet pack -c Release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
63 | | - cd bin/Release |
64 | | - dotnet nuget push AngouriMath.FSharp.${{ steps.version.outputs.version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source nuget.org |
65 | | - |
66 | | - - name: 'Pack and publish AngouriMath.Interactive' |
| 62 | +
|
| 63 | + - name: 'Pack AngouriMath.Interactive' |
67 | 64 | run: | |
68 | 65 | cd Sources/Wrappers/AngouriMath.Interactive |
69 | 66 | dotnet restore |
70 | 67 | dotnet build -c Release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
71 | 68 | dotnet pack -c Release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
72 | | - cd bin/Release |
73 | | - dotnet nuget push AngouriMath.Interactive.${{ steps.version.outputs.version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source nuget.org |
74 | | - |
75 | | - - name: 'Pack and publish AngouriMath.Terminal' |
| 69 | +
|
| 70 | + - name: 'Pack AngouriMath.Terminal' |
76 | 71 | run: | |
77 | 72 | cd Sources/Terminal/AngouriMath.Terminal |
78 | 73 | dotnet restore |
79 | 74 | dotnet build -c Release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
80 | 75 | dotnet pack -c Release -p:Version=${{ steps.version.outputs.version }} -p:FileVersion=${{ steps.version.outputs.file_version }} |
81 | | - cd bin/Release |
82 | | - dotnet nuget push AngouriMath.Terminal.${{ steps.version.outputs.version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source nuget.org |
| 76 | +
|
| 77 | + - name: 'NuGet login' |
| 78 | + id: login |
| 79 | + uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0 |
| 80 | + with: |
| 81 | + user: Happypig375 |
| 82 | + |
| 83 | + - name: 'Publish AngouriMath' |
| 84 | + run: dotnet nuget push Sources/AngouriMath/bin/release/AngouriMath.${{ steps.version.outputs.version }}.nupkg --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source nuget.org |
| 85 | + |
| 86 | + - name: 'Publish AngouriMath.FSharp' |
| 87 | + run: dotnet nuget push Sources/Wrappers/AngouriMath.FSharp/bin/Release/AngouriMath.FSharp.${{ steps.version.outputs.version }}.nupkg --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source nuget.org |
| 88 | + |
| 89 | + - name: 'Publish AngouriMath.Interactive' |
| 90 | + run: dotnet nuget push Sources/Wrappers/AngouriMath.Interactive/bin/Release/AngouriMath.Interactive.${{ steps.version.outputs.version }}.nupkg --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source nuget.org |
| 91 | + |
| 92 | + - name: 'Publish AngouriMath.Terminal' |
| 93 | + run: dotnet nuget push Sources/Terminal/AngouriMath.Terminal/bin/Release/AngouriMath.Terminal.${{ steps.version.outputs.version }}.nupkg --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source nuget.org |
0 commit comments