Skip to content

Commit

Permalink
Add CI via GitHub Actions
Browse files Browse the repository at this point in the history
Now, whenever I push a new tag, GitHub Actions will build a new
release automatically.
  • Loading branch information
thehale committed Nov 4, 2021
1 parent 5cab1ca commit 08f0075
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI/CD for TNoodle CLI

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Java
id: jdk
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: |
chmod +x gradlew
./gradlew test
./gradlew runtimeZip
- name: Release
uses: softprops/action-gh-release@v1
with:
files: build/releases/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: jhale1805/tnoodle-cli

0 comments on commit 08f0075

Please sign in to comment.