From: Kangho Hur Date: Tue, 1 Aug 2023 05:38:19 +0000 (+0900) Subject: Update deploy-packages.yml X-Git-Tag: submit/tizen/20230801.060523~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b599fa2edd701f4dff7cf0b8b19a175e4f157ad5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Update deploy-packages.yml --- diff --git a/.github/workflows/deploy-packages.yml b/.github/workflows/deploy-packages.yml index 1692e7f0b..3ab8de9d3 100644 --- a/.github/workflows/deploy-packages.yml +++ b/.github/workflows/deploy-packages.yml @@ -7,6 +7,10 @@ on: description: 'Branch to deploy' required: true default: 'master' + deploy_to_gpr: + description: 'Deploy packages to Github Packages Registry?' + required: true + default: true deploy_to_myget: description: 'Deploy packages to MyGet?' required: true @@ -67,6 +71,17 @@ jobs: git tag -fa "v$VERSION" -m "Release $VERSION" git push -f --tags origin refs/tags/"v$VERSION" + - name: Install Github Package Registry Tool + if: github.event.inputs.deploy_to_gpr == 'true' + run: dotnet tool install --global --no-cache gpr + + - name: Deploy NuGet packages to Github Packages Registry + if: github.event.inputs.deploy_to_gpr == 'true' + run: | + gpr push --api-key ${{ secrets.TIZENAPI_GITHUB_TOKEN }} \ + --repository ${{ github.repository }} \ + --retries 3 Artifacts/*.nupkg + - name: Deploy NuGet packages to MyGet if: github.event.inputs.deploy_to_myget == 'true' env: