mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-19 15:09:19 +00:00
Delete publish.yml
This commit is contained in:
31
.github/workflows/publish.yml
vendored
31
.github/workflows/publish.yml
vendored
@@ -1,31 +0,0 @@
|
|||||||
name: Publish to HibiscusMC Repository
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- remapped
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
if: "!contains(github.event.head_commit.message, 'dependabot') && !contains(github.event.head_commit.message, 'nopush')"
|
|
||||||
environment: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
HAS_TOKEN: ${{ secrets.REPO_PASSWORD != '' }}
|
|
||||||
steps:
|
|
||||||
- name: Elevate Permissions
|
|
||||||
run: chmod +x gradlew
|
|
||||||
- uses: actions/checkout@v2.3.4
|
|
||||||
- name: Set up Java
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 17
|
|
||||||
- name: Build with Gradle
|
|
||||||
run: ./gradlew clean build --no-daemon --stacktrace
|
|
||||||
- name: Publish to Nexus
|
|
||||||
if: ${{ env.HAS_TOKEN == 'true' }}
|
|
||||||
run: ./gradlew publishMavenPublicationToHibiscusMCRepositoryRepository
|
|
||||||
env:
|
|
||||||
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
|
|
||||||
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
|
||||||
Reference in New Issue
Block a user