Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Chnage note

Chnage note #34

name: Build and Release [Linux]
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Compilation
uses: gradle/gradle-build-action@v2
with:
arguments: classes
- name: Unit tests
uses: gradle/gradle-build-action@v2
with:
arguments: test
- name: Integration tests
uses: gradle/gradle-build-action@v2
with:
arguments: integrationTest
- name: Functional tests
uses: gradle/gradle-build-action@v2
with:
arguments: functionalTest
- name: Assemble artifact
uses: gradle/gradle-build-action@v2
with:
arguments: assemble
- name: Store artifact
uses: actions/upload-artifact@v2
with:
name: gradle-tomcat-plugin.jar
path: build/libs/*.jar
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: gradle/gradle-build-action@v2
with:
arguments: publishPlugins gitPublishPush -Pgradle.publish.key=${{ secrets.PLUGIN_PORTAL_KEY }} -Pgradle.publish.secret=${{ secrets.PLUGIN_PORTAL_SECRET }} -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_TOKEN }} -is