Skip to content

Commit 08f0075

Browse files
committed
Add CI via GitHub Actions
Now, whenever I push a new tag, GitHub Actions will build a new release automatically.
1 parent 5cab1ca commit 08f0075

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci-cd.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI/CD for TNoodle CLI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Install Java
15+
id: jdk
16+
uses: actions/setup-java@v2
17+
with:
18+
java-version: '11'
19+
distribution: 'adopt'
20+
- name: Build
21+
run: |
22+
chmod +x gradlew
23+
./gradlew test
24+
./gradlew runtimeZip
25+
- name: Release
26+
uses: softprops/action-gh-release@v1
27+
with:
28+
files: build/releases/*
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITHUB_REPOSITORY: jhale1805/tnoodle-cli

0 commit comments

Comments
 (0)