Skip to content
This repository was archived by the owner on Apr 5, 2026. It is now read-only.

1.21.11-pre4

1.21.11-pre4 #54

Workflow file for this run

name: Deploy Release
on:
push:
branches:
- 'main'
- 'mc/**'
paths-ignore:
- 'docs/**'
- 'README.md'
- '.editorconfig'
- '.gitattributes'
- '.gitignore'
- '.typos.toml'
jobs:
deploy:
name: Deploy Release
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
- uses: gradle/actions/setup-gradle@v5
- name: Validate data
run: ./gradlew validateData --stacktrace --console=colored
- name: "Get version"
run: |
PARCHMENT_VERSION=$(./gradlew printVersion --console=plain --quiet)
echo "PARCHMENT_VERSION=$PARCHMENT_VERSION" >> $GITHUB_ENV
- uses: neoforged/action-github-status@v1
name: Set build pending status
if: always()
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: 'Publishing'
state: 'pending'
description: "Version: ${{ env.PARCHMENT_VERSION }}"
target_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Deploy release version
run: |
./gradlew publishExportPublicationToPaperRepository --stacktrace --console=colored
if [ $? -eq 0 ]; then
echo "GRADLE_SUCCESS=success" >> $GITHUB_ENV
else
echo "GRADLE_SUCCESS=failure" >> $GITHUB_ENV
fi
env:
ORG_GRADLE_PROJECT_paperUsername: ${{ secrets.ARTIFACTORY_USERNAME }}
ORG_GRADLE_PROJECT_paperPassword: ${{ secrets.ARTIFACTORY_PASSWORD }}
- uses: neoforged/action-github-status@v1
name: Set build completion status
if: always()
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: 'Publishing'
state: ${{ env.GRADLE_SUCCESS || 'failure' }}
description: "Version: ${{ env.PARCHMENT_VERSION }}"
target_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}