Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: publishing & deployment updates
- Loading branch information
Showing
4 changed files
with
171 additions
and
27 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,41 @@ | ||
#name: "Build and Deploy [development]" | ||
#on: | ||
# push: | ||
# paths: [ 'simplecoreapi/**' ] | ||
#jobs: | ||
# build: | ||
# name: "Build and Deploy [development]" | ||
# if: ${{ github.ref != 'refs/heads/master' && !contains(github.event.head_commit.message, '[skip ci]') }} | ||
# # Set up the OS | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# # Sonatype Credentials & GitHub token | ||
# SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}' | ||
# SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}' | ||
# GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
# # Set environment | ||
# ENV: 'dev' | ||
# steps: | ||
# # Checkout the Code | ||
# - name: Checkout Code | ||
# uses: actions/checkout@v4 | ||
# # Set up git hashes environment variables | ||
# - name: Git Hashes | ||
# uses: Im-Fran/git-hashes-action@v1.0.3 | ||
# # Set up the JDK | ||
# - name: Set up JDK 11 | ||
# uses: actions/setup-java@v4 | ||
# with: | ||
# distribution: adopt | ||
# java-version: 11 | ||
# # Clean, Test, Publish and Build (in that order to save the artifact to the action) | ||
# - name: Build with Gradle | ||
# uses: gradle/gradle-build-action@v2 | ||
# with: | ||
# arguments: clean test shadowJar dokkaHtml publish publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
# # Now we store the artifact in the action | ||
# - name: Upload the artifact | ||
# uses: actions/upload-artifact@v5 | ||
# with: | ||
# name: SimpleCoreAPI | ||
# path: ./simplecoreapi/build/libs/SimpleCoreAPI-${{ env.GIT_COMMIT_SHORT_HASH }}.jar |
4 changes: 2 additions & 2 deletions
4
.github/workflows/deploy.yml → .github/workflows/deploy-production.yml
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