Skip to content

Set version to 1.37.0 #600

Set version to 1.37.0

Set version to 1.37.0 #600

Workflow file for this run

name: Alpha Release
on:
workflow_dispatch:
push:
branches:
- master
jobs:
publish-alpha:
name: Publish to ALPHA
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v2
name: Cache Gradle packages
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Get Chat Version
id: get_chat_version
run: echo "version=$(cat ./.chatversion)" >> $GITHUB_ENV
- name: Checkout Chat Application Repository
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'codota/tabnine-chat-app'
version: 'tags/${{ env.version }}'
file: 'build.tar.gz'
token: ${{ secrets.gh_builder_token }}
- name: Extract Chat App Build
run: |
mkdir -p ./Tabnine/tabnineChat
cp build.tar.gz ./Tabnine/tabnineChat/chat-bundle.tar.gz
- name: Get Version
id: get_build_version
run: |
CURRENT_VERSION=$(./gradlew -q :Tabnine:currentVersion)
TIMESTAMP=$(date '+%Y%m%d%H%M%S')
echo "::set-output name=build_version::$CURRENT_VERSION-alpha.$TIMESTAMP"
- name: Publish
run: |
./gradlew :Tabnine:publishPlugin -PexternalVersion=${{ steps.get_build_version.outputs.build_version }} -Pchannel=alpha
env:
HUB_TOKEN: ${{ secrets.HUB_TOKEN }}