Skip to content

Bump System.Text.Json from 6.0.4 to 8.0.4 in /IEXSharp #287

Bump System.Text.Json from 6.0.4 to 8.0.4 in /IEXSharp

Bump System.Text.Json from 6.0.4 to 8.0.4 in /IEXSharp #287

Workflow file for this run

name: prerelease NuGet
on: [push]
jobs:
build:
runs-on: ubuntu-latest
# also works with windows-latest and macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: Build with dotnet and create prerelease nupkg
run: dotnet build --configuration PreRelease --version-suffix prerelease-$(date +%Y%m%d%H%M%S)
shell: bash
# run: dotnet build --configuration Release --version-suffix prerelease-$(Get-Date -Format "yyyyMMddHHmmss")
#- name: Install NuGet client
# uses: warrenbuckley/Setup-Nuget@v1
#- name: Setup nuget config # use .NuGet.config for now 2/2 GH bug https://github.com/NuGet/Home/issues/8580
# run: sed 's/GHPackagesToken/${{ secrets.GHPackagesToken }}/g' .nuget.config > nuget.config
#- name: Add GitHub Packages source to NuGet
# run: nuget sources add -name "GitHubPackages" -Source https://nuget.pkg.github.com/vslee/index.json -Username vslee -Password ${{ secrets.GHPackagesToken }}
#- name: list dir
# run: |
# dir
# cd IEXSharp
# dir
# cd bin
# dir
# cd Release
# dir
- name: Publish nuget to GitHub Packages
run: |
for f in ./IEXSharp/bin/PreRelease/*.nupkg
do
curl -vX PUT -u "vslee:${{ secrets.GHPackagesToken }}" -F package=@$f https://nuget.pkg.github.com/vslee/
done
shell: bash
# run: dotnet nuget push .\IEXSharp\bin\PreRelease\*.nupkg -s "GitHubPackages"