Skip to content

github actions to build and release #2

github actions to build and release

github actions to build and release #2

Workflow file for this run

name: Maven CI/CD
on:
push:
branches: [master]
tags:
- 'v*.*.*'
jobs:
release-build:
name: Release Build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build project with Maven
run: mvn -B package --file pom.xml
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: |
tool/target/rdapct-*.jar
tool/target/bin/rdapct_config.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}