-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.22 KB
/
ci.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
49
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- "**"
jobs:
build:
name: Build binary
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Setup Java and Maven
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
maven: true
- name: Checkout repo
uses: actions/checkout@v2
with:
clean: false
submodules: 'recursive'
- name: Create tarball
run: script/build
- name: Upload tarball to workflow run if main branch
uses: actions/upload-artifact@v2
with:
name: eclipse.jdt.ls.tar.gz
path: dist/eclipse.jdt.ls.tar.gz
- uses: softprops/action-gh-release@v1
name: Upload binaries to release if release tag
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
draft: true
files: dist/*
overwrite: true
body: ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}