Skip to content

Add copyright notice to LICENSE file #64

Add copyright notice to LICENSE file

Add copyright notice to LICENSE file #64

Workflow file for this run

name: Build
on:
push:
branches:
- '1.20.x/*'
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
validate-gradle:
name: "Validate Gradle wrapper"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # Clone with vs-core submodule
- uses: gradle/wrapper-validation-action@v1
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build jar
run: ./gradlew build
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages and VS Maven
run: ./gradlew publish
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}