Skip to content

Deploy PRO nuget package and samplesite #8

Deploy PRO nuget package and samplesite

Deploy PRO nuget package and samplesite #8

name: Deploy PRO nuget package and samplesite
on:
workflow_run:
workflows: ["Pro"]
types:
- completed
jobs:
publish_nuget:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Publish nuget package
runs-on: ubuntu-latest
environment: ${{ github.event.workflow_run.name }}
steps:
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow_conclusion: success
run_id: ${{ github.event.workflow_run.id }}
name: packages
path: packages
- name: Publish to nuget
run: dotnet nuget push packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
publish_sample_site:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Publish sample site
uses: ./.github/workflows/template_publish_webapp.yml
secrets: inherit
with:
Environment: ${{ github.event.workflow_run.name }}
WorkflowRunId: ${{ github.event.workflow_run.id }}