1 name: "Deploy Packages"
7 description: 'Branch to deploy'
11 description: 'Deploy packages to MyGet?'
15 description: 'Submit changes to Tizen?'
20 # - cron: "0 16 * * *"
23 TARGET_BRANCH: ${{ github.event.inputs.target }}
27 runs-on: ubuntu-latest
29 - uses: actions/checkout@v2
31 ref: ${{ env.TARGET_BRANCH }}
34 - name: Get Branch Metadata
36 uses: TizenAPI/tizenfx-build-actions/branch-metadata@master
38 ref: ${{ env.TARGET_BRANCH }}
43 VERSION_PREFIX: ${{ steps.metadata.outputs.version-prefix }}
45 VERSION=$VERSION_PREFIX.$((10000+$(git rev-list --count HEAD)))
47 echo "::set-output name=version::$VERSION"
51 VERSION: ${{ steps.version.outputs.version }}
54 ./build.sh pack $VERSION
56 - name: Deploy NuGet packages to MyGet
57 if: github.event.inputs.deploy_to_myget == 'true'
59 NUGET_SOURCE: https://tizen.myget.org/F/dotnet-test/api/v2/package
60 APIKEY: ${{ secrets.MYGET_APIKEY }}
62 dotnet nuget push Artifacts/*.nupkg -k $APIKEY -s $NUGET_SOURCE -t 3000
66 echo "${{ steps.version.outputs.version }}"