[NUI] Add font thread sync creation option
[platform/core/csapi/tizenfx.git] / .github / workflows / deploy-packages.yml
index 3882c28..1692e7f 100644 (file)
@@ -21,12 +21,16 @@ env:
 
 jobs:
   deploy:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-20.04
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
       with:
         ref: ${{ env.TARGET_BRANCH }}
         fetch-depth: 0
+    
+    - uses: actions/setup-dotnet@v3
+      with:
+        dotnet-version: '6.0.102'
 
     - name: Git Config
       run: |
@@ -47,7 +51,7 @@ jobs:
       run: |
         VERSION=$VERSION_PREFIX.$((10000+$(git rev-list --count HEAD)))
         echo VERSION=$VERSION
-        echo "::set-output name=version::$VERSION"
+        echo "version=$VERSION" >> $GITHUB_OUTPUT
 
     - name: Build
       env:
@@ -72,7 +76,7 @@ jobs:
         dotnet nuget push Artifacts/*.nupkg -k $APIKEY -s $NUGET_SOURCE -t 3000
 
     - name: Setup SSH private keys
-      uses: webfactory/ssh-agent@v0.5.2
+      uses: webfactory/ssh-agent@v0.7.0
       with:
         ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
 
@@ -83,6 +87,10 @@ jobs:
         GERRIT_BRANCH: ${{ steps.metadata.outputs.tizen-branch }}
         GERRIT_URL: ssh://dotnetbuild@review.tizen.org:29418/platform/core/csapi/tizenfx
       run: |
+        if [ -z "$GERRIT_BRANCH" ]; then
+          echo "## no specified tizen branch"
+          exit 0
+        fi
         git remote add gerrit $GERRIT_URL
         git fetch gerrit $GERRIT_BRANCH
         git checkout -t gerrit/$GERRIT_BRANCH