-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from TheProgramSrc/patch/updates
- Loading branch information
Showing
14 changed files
with
246 additions
and
163 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 |
---|---|---|
|
@@ -7,22 +7,23 @@ jobs: | |
# Set up the OS | ||
runs-on: ubuntu-latest | ||
env: | ||
# Nexus credentials and GitHub token | ||
NEXUS_USERNAME: '${{ secrets.NEXUS_USERNAME }}' | ||
NEXUS_PASSWORD: '${{ secrets.NEXUS_PASSWORD }}' | ||
# Sonatype Credentials & GitHub token | ||
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}' | ||
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}' | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
# Set environment | ||
env: 'prod' | ||
ENV: 'prod' | ||
PROJECT_NAME: 'TranslationsModule' | ||
steps: | ||
# Checkout the Code | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
# Set up git hashes environment variables | ||
- name: Git Hashes | ||
uses: Im-Fran/[email protected].0 | ||
uses: Im-Fran/[email protected].3 | ||
# Set up version from tag environment variables | ||
- name: Version from Tag Action | ||
uses: Im-Fran/[email protected].1 | ||
uses: Im-Fran/[email protected].3 | ||
with: | ||
remove-first-character: 'v' | ||
# Set up the JDK | ||
|
@@ -31,27 +32,30 @@ jobs: | |
with: | ||
distribution: adopt | ||
java-version: 11 | ||
cache: 'gradle' | ||
# Make gradle executable | ||
- name: Make gradle executable | ||
run: chmod +x gradlew | ||
# Clean, Test, Publish and Build (in that order to save the artifact to the action) | ||
- name: Test, Deploy and Build with Gradle | ||
run: ./gradlew clean test publish shadow dokkaHtml | ||
run: ./gradlew clean test shadowJar dokkaHtml publish publishToSonatype closeAndReleaseSonatypeStagingRepository -no-daemon | ||
# Now we store the artifact in the action | ||
- name: Upload the artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: TranslationsModule | ||
path: ./build/libs/TranslationsModule-${{ env.VERSION }}.jar | ||
name: ${{ env.PROJECT_NAME }} | ||
path: ./build/libs/${{ env.PROJECT_NAME }}-${{ env.VERSION }}.jar | ||
# Here we upload the binary to the release | ||
- name: Upload to release | ||
uses: JasonEtco/upload-to-release@master | ||
with: | ||
args: ./build/libs/TranslationsModule-${{ env.VERSION }}.jar application/java-archive | ||
args: ./build/libs/${{ env.PROJECT_NAME }}-${{ env.VERSION }}.jar application/java-archive | ||
# Now we deploy the documents to GitHub pages | ||
- name: Deploy Dokka | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: build/dokka | ||
clean: true | ||
clean: true | ||
clean-exclude: | | ||
CNAME |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.