Add default address and port - 1.0.1 (#6) #3
This file contains 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: deploy | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
deploy: | |
name: Deploy Package | |
runs-on: windows-2022 | |
environment: Production | |
steps: | |
- name: Download Artifact | |
run: | | |
repo="${{ github.repository }}" | |
workflow="test_build.yml" | |
artifact="nuget" | |
run_id=`gh run --repo ${repo} list --workflow ${workflow} --json databaseId --jq .[0].databaseId` | |
gh run --repo ${repo} download ${run_id} -n ${artifact} | |
shell: bash | |
env: | |
GH_TOKEN: ${{ secrets.GH_PAT }} | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
- name: Publish NuGet Package | |
run: | | |
dotnet nuget push *.nupkg --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json | |
shell: pwsh |