Skip to content

Merge pull request #16 from CKATEPTb-minecraft/development #15

Merge pull request #16 from CKATEPTb-minecraft/development

Merge pull request #16 from CKATEPTb-minecraft/development #15

Workflow file for this run

name: Publish
concurrency: production
# This action should process only on push to 'production' branch
on:
push:
branches:
- production
jobs:
build:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: "liberica"
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build and Publish with Gradle
run: ./gradlew clean build publishToMyNexus
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}