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: |
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:
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 }}
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