-
Notifications
You must be signed in to change notification settings - Fork 67
48 lines (46 loc) · 1.54 KB
/
alpha.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 }}