From: WonYoung Choi Date: Mon, 17 May 2021 01:39:53 +0000 (+0900) Subject: ci test X-Git-Tag: citest_t1~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=337d519a1d82780dfb7117487f3b651d84b2d233;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git ci test --- diff --git a/.github/workflows/deploy-packages.yml b/.github/workflows/deploy-packages.yml index 304faf5..7c3653a 100644 --- a/.github/workflows/deploy-packages.yml +++ b/.github/workflows/deploy-packages.yml @@ -7,6 +7,10 @@ on: description: 'Target Branch to Deploy' required: true default: 'master' + deploy_to_myget: + description: 'If true, NuGet packages will be deployed to MyGet' + required: true + default: true # schedule: # - cron: "0 16 * * *" @@ -38,6 +42,21 @@ jobs: echo VERSION=$VERSION echo "::set-output name=version::$VERSION" + - name: Build + env: + VERSION: ${{ steps.version.outputs.version }} + run: | + ./build.sh full + ./build.sh pack $VERSION + + - name: Deploy NuGet packages to MyGet + if: github.event.inputs.deploy_to_myget == 'true' + env: + NUGET_SOURCE: https://tizen.myget.org/F/dotnet-test/api/v2/package + APIKEY: ${{ secrets.MYGET_APIKEY }} + run: | + dotnet nuget push Artifacts/*.nupkg -k $APIKEY -s $NUGET_SOURCE -t 3000 + - name: Test run: | echo "${{ steps.version.outputs.version }}"