Fix CI #1404
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Artifacts | |
on: | |
push: | |
branches: | |
- '**' | |
release: | |
types: [ created ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: adopt | |
server-id: xenondevs | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Run BuildTools | |
run: . .github/scripts/buildtools.sh | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build Spigot-Mapped | |
run: ./gradlew loaderJarSpigot "-DoutDir=artifacts/" | |
- name: Upload Artifacts | |
id: upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Artifacts | |
path: ./artifacts/*.jar | |
- name: Attach Artifacts to Release | |
if: github.event_name == 'release' | |
uses: skx/github-action-publish-binaries@release-2.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: ./artifacts/*.jar | |
- name: Build & Publish Mojang-Mapped | |
run: ./gradlew publishNovaPublicationToXenondevsRepository publishNovaAPIPublicationToXenondevsRepository publishNovaGradlePluginPublicationToXenondevsRepository publishNova-gradle-pluginPluginMarkerMavenPublicationToXenondevsRepository -PxenondevsUsername=${{ secrets.MAVEN_USERNAME }} -PxenondevsPassword=${{ secrets.MAVEN_PASSWORD }} |