Skip to content

Merge pull request #8 from YsGqHY/master #67

Merge pull request #8 from YsGqHY/master

Merge pull request #8 from YsGqHY/master #67

Workflow file for this run

name: Project Build
on: [ push ]
jobs:
build:
if: "contains(github.event.head_commit.message, 'publish')"
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: cache gradle packages
uses: actions/cache@v2
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}
path: |
~/.gradle/caches
~/.gradle/wrapper
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk 17.0
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17.0
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: publish
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew publish -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: plugin/build/libs/