Skip to content

Merge pull request #18 from testingbot/dependabot/maven/ch.qos.logbac… #1

Merge pull request #18 from testingbot/dependabot/maven/ch.qos.logbac…

Merge pull request #18 from testingbot/dependabot/maven/ch.qos.logbac… #1

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adoptopenjdk'
- name: Cache Maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Run Maven to package the project
- name: Build with Maven
run: mvn clean package -DskipTests
# Upload the JAR as a release asset
- name: Upload JAR to GitHub Releases
uses: softprops/action-gh-release@v1
with:
files: target/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}