-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '0.14.x-1.20.x' into 0.15.x-1.20.x
I forgot to pull before working on the port :/
- Loading branch information
Showing
2 changed files
with
170 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
name: Publish | ||
|
||
on: [workflow_dispatch] # Manual trigger | ||
|
||
jobs: | ||
prep: | ||
runs-on: ubuntu-latest | ||
name: 'Work' | ||
outputs: | ||
did_tasks: ${{ steps.tasks.conclusion }} | ||
did_license: ${{ steps.license.conclusion }} | ||
did_test: ${{ steps.test.conclusion }} | ||
did_javadoc: ${{ steps.javadoc.conclusion }} | ||
did_build: ${{ steps.build.conclusion }} | ||
did_publish: ${{ steps.publish.conclusion }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
distribution: 'adopt-hotspot' | ||
java-version: '17' | ||
- id: tasks | ||
name: 'Setup' | ||
run: './gradlew tasks' | ||
- id: 'license' | ||
name: 'Check License' | ||
run: './gradlew checkLicense' | ||
- id: 'test' | ||
name: 'Test' | ||
run: './gradlew test' | ||
- id: 'javadoc' | ||
name: 'Javadoc' | ||
run: './gradlew javadoc' | ||
- id: 'build' | ||
name: 'Build' | ||
run: './gradlew build' | ||
- id: 'publish' | ||
name: 'Build' | ||
run: './gradlew publish uploadJavadoc' | ||
env: | ||
UPLOAD_MAVEN_URL: ${{ secrets.UPLOAD_MAVEN_URL }} | ||
UPLOAD_PASSWORD: ${{ secrets.UPLOAD_PASSWORD }} | ||
UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }} | ||
output_tasks: | ||
name: 'Check Buildscript' | ||
runs-on: ubuntu-latest | ||
needs: prep | ||
if: always() | ||
steps: | ||
- name: 'Check Tasks' | ||
run: | | ||
echo "${{ needs.prep.outputs.did_tasks }}" | ||
if [[ ${{ needs.prep.outputs.did_tasks }} != "success" ]]; then | ||
echo "Look at the 'Work' job to see what went wrong!" | ||
exit 1 | ||
fi | ||
output_license: | ||
name: 'Check License' | ||
runs-on: ubuntu-latest | ||
needs: [prep, output_tasks] | ||
if: always() | ||
steps: | ||
- name: 'Check License' | ||
run: | | ||
echo "${{ needs.prep.outputs.did_license }}" | ||
if [[ ${{ needs.prep.outputs.did_license }} != "success" ]]; then | ||
echo "Look at the 'Work' job to see what went wrong!" | ||
exit 1 | ||
fi | ||
output_test: | ||
name: 'Run Tests' | ||
runs-on: ubuntu-latest | ||
needs: [prep, output_license] | ||
if: always() | ||
steps: | ||
- name: 'Check Test' | ||
run: | | ||
echo "${{ needs.prep.outputs.did_test }}" | ||
if [[ ${{ needs.prep.outputs.did_test }} != "success" ]]; then | ||
echo "Look at the 'Work' job to see what went wrong!" | ||
exit 1 | ||
fi | ||
output_javadoc: | ||
name: 'Generate Javadoc' | ||
runs-on: ubuntu-latest | ||
needs: [prep, output_test] | ||
if: always() | ||
steps: | ||
- name: 'Check Javadocs' | ||
run: | | ||
echo "${{ needs.prep.outputs.did_javadoc }}" | ||
if [[ ${{ needs.prep.outputs.did_javadoc }} != "success" ]]; then | ||
echo "Look at the 'Work' job to see what went wrong!" | ||
exit 1 | ||
fi | ||
output_build: | ||
name: 'Build Jars' | ||
runs-on: ubuntu-latest | ||
needs: [prep, output_javadoc] | ||
if: always() | ||
steps: | ||
- name: 'Check Build' | ||
run: | | ||
echo "${{ needs.prep.outputs.did_build }}" | ||
if [[ ${{ needs.prep.outputs.did_build }} != "success" ]]; then | ||
echo "Look at the 'Work' job to see what went wrong!" | ||
exit 1 | ||
fi | ||
output_publish: | ||
name: 'Publish Jars' | ||
runs-on: ubuntu-latest | ||
needs: [prep, output_build] | ||
if: always() | ||
steps: | ||
- name: 'Check Publishing' | ||
run: | | ||
echo "${{ needs.prep.outputs.did_publish }}" | ||
if [[ ${{ needs.prep.outputs.did_publish }} != "success" ]]; then | ||
echo "Look at the 'Work' job to see what went wrong!" | ||
exit 1 | ||
fi | ||
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