- try fixing deploy action

pull/59/head
Simon G 3 years ago committed by GitHub
parent ecf14c89dc
commit 9f4ffbbe3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      .github/workflows/deploy.yml

@ -10,13 +10,16 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Deploy to NuGet Gallery - name: Deploy to NuGet Gallery
# env: env:
# NUGET_KEY: ${{ secrets.NUGET_KEY }} NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: echo Test NuGet run:
# dotnet pack -c Release dotnet pack -c Release
# cd bin\Release cd bin\Release
# dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json
github: github:
name: GitHub name: GitHub
@ -25,11 +28,14 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Deploy to GitHub Package Registry - name: Deploy to GitHub Package Registry
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_PACKAGE_REGISTRY_KEY: ${{ secrets.GH_PACKAGE_REGISTRY_KEY }}
run: echo Test GitHub run:
# dotnet pack -c Release dotnet pack -c Release
# nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/SimonG96/index.json" -UserName SimonG96 -Password GITHUB_TOKEN nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/SimonG96/index.json" -UserName SimonG96 -Password GH_PACKAGE_REGISTRY_KEY
# cd bin\Release cd bin\Release
# dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry" dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"

Loading…
Cancel
Save