Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop to Main - Publish 2.0 #24

Merged
merged 13 commits into from
May 3, 2022
Prev Previous commit
Next Next commit
fingers crossed after I RTFM and found a decent example - trying GitH…
…ub variables
  • Loading branch information
calebjenkins committed May 3, 2022
commit d5201f5beed930cffa3f7510369b622b95b869cc
3 changes: 2 additions & 1 deletion .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:


- name: Push to Nuget
if: ${{ steps.detect_develop.outcome == 'success' }}
# if: ${{ steps.detect_develop.outcome == 'success' }}
if: ${{ github.ref == 'refs/heads/Develop' }}
# run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.FAKEAUTH_NUGET_KEY}}
run: dotnet nuget push FakeAuth.${{steps.get_version.outputs.RELEASE_VERSION}}-ci-${BUILD_NUMBER}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.FAKEAUTH_NUGET_KEY}}
8 changes: 5 additions & 3 deletions .github/workflows/main-ci-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ jobs:

- name: Pack
run: dotnet pack --configuration Release /p:Version=${{steps.get_version.outputs.RELEASE_VERSION}} --include-symbols --output .
if: ${{ steps.main_main.outcome == 'success' }}

if: ${{ github.ref == 'refs/heads/main' }}
#if: ${{ steps.main_main.outcome == 'success' }}

- name: Push to Nuget
run: dotnet nuget push FakeAuth.${{steps.get_version.outputs.RELEASE_VERSION}}.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{secrets.FAKEAUTH_NUGET_KEY}}
if: ${{ steps.main_main.outcome == 'success' }}
if: ${{ github.ref == 'refs/heads/main' }}
#if: ${{ steps.main_main.outcome == 'success' }}