Fix paths #126
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Upload last-master versions to MyGet' | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup .NET 10 | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.x' | |
| dotnet-quality: 'preview' | |
| - uses: actions/checkout@v6 | |
| - name: 'Pack AngouriMath' | |
| run: | | |
| cd Sources | |
| # versioning | |
| commithash=$(git rev-parse --short HEAD) | |
| currtime=$(date +%s) | |
| echo "commit hash is $commithash" | |
| echo "time is $currtime" | |
| name=10.0.0-master-$currtime-$commithash | |
| echo "name is $name" | |
| # AngouriMath | |
| cd AngouriMath | |
| dotnet restore AngouriMath.csproj | |
| dotnet build AngouriMath.csproj -c release | |
| dotnet pack AngouriMath.csproj -c release -p:PackageVersion=$name | |
| cd bin/release | |
| dotnet nuget push AngouriMath.$name.nupkg --api-key ${{ secrets.MYGET_KEY }} --source "myget" | |
| cd ../../../.. | |
| # AngouriMath.FSharp | |
| cd Wrappers/AngouriMath.FSharp | |
| dotnet restore | |
| dotnet build -c Release | |
| dotnet pack -c Release -p:PackageVersion=$name | |
| cd bin/Release | |
| dotnet nuget push AngouriMath.FSharp.$name.nupkg --api-key ${{ secrets.MYGET_KEY }} --source "myget" | |
| cd ../../../.. | |
| # AngouriMath.Interactive | |
| cd Wrappers/AngouriMath.Interactive | |
| dotnet restore | |
| dotnet build -c Release | |
| dotnet pack -c Release -p:PackageVersion=$name | |
| cd bin/Release | |
| dotnet nuget push AngouriMath.Interactive.$name.nupkg --api-key ${{ secrets.MYGET_KEY }} --source "myget" | |
| cd ../../../.. |