Skip to content

Commit d386044

Browse files
committed
Migrate CI to GitHub Actions
1 parent 6ef0ec7 commit d386044

File tree

4 files changed

+54
-29
lines changed

4 files changed

+54
-29
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
java: ['11']
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup JDK
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: ${{ matrix.java }}
16+
- name: Build
17+
run: ./gradlew :adapter:build

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup JDK
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 11
16+
- name: Build distribution
17+
run: ./gradlew :adapter:distZip
18+
- name: Create release
19+
uses: actions/create-release@v1
20+
id: create_release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
tag_name: ${{ github.ref }}
25+
release_name: Version ${{ github.ref }}
26+
draft: false
27+
prerelease: false
28+
- name: Upload asset
29+
uses: actions/upload-release-asset@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
upload_url: ${{ steps.create_release.outputs.upload_url }}
34+
asset_path: ./adapter/build/distributions/adapter.zip
35+
asset_name: adapter.zip
36+
asset_content_type: application/zip

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Kotlin Debug Adapter
22

33
[![Release](https://img.shields.io/github/release/fwcd/kotlin-debug-adapter)](https://github.com/fwcd/kotlin-debug-adapter/releases)
4-
[![Build Status](https://travis-ci.org/fwcd/kotlin-debug-adapter.svg?branch=master)](https://travis-ci.org/fwcd/kotlin-debug-adapter)
4+
[![Build](https://github.com/fwcd/kotlin-debug-adapter/workflows/Build/badge.svg)](https://github.com/fwcd/kotlin-debug-adapter/actions)
55
[![Downloads](https://img.shields.io/github/downloads/fwcd/kotlin-debug-adapter/total)](https://github.com/fwcd/kotlin-debug-adapter/releases)
66
[![Chat](https://img.shields.io/badge/chat-on%20discord-7289da)](https://discord.gg/cNtppzN)
77

0 commit comments

Comments
 (0)