Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'NetworkingModule'
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].1
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
Expand All @@ -31,22 +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: NetworkingModule
path: ./build/libs/NetworkingModule-${{ 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/${{ env.PROJECT_NAME }}-${{ env.VERSION }}.jar application/java-archive
# Now we deploy the documents to GitHub pages
- name: Deploy Dokka
uses: JamesIves/[email protected].0
uses: JamesIves/[email protected].1
with:
branch: gh-pages
folder: build/dokka
clean: true
clean: true
clean-exclude: |
CNAME
35 changes: 18 additions & 17 deletions .github/workflows/gradle-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Test"
# Only execute this workflow when a PR is opened or when something is pushed to the master branch
on: [push, pull_request]
on: [pull_request]
jobs:
testBuilds:
strategy:
Expand All @@ -12,20 +12,21 @@ jobs:
runs-on: ubuntu-latest
# Set up environment variables
env:
env: 'local' # Set to local, so it won't deploy the jar to the repos
ENV: 'local' # Set to local, so it won't deploy the jar to the repos
steps:
# Checkout code
- name: Checkout Code
uses: actions/checkout@v3
# Setup java and maven
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java-version }}
# Setup executable gradle
- name: Make Gradle executable
run: chmod +x gradlew
# Test building without dokka
- name: Build Jar with Java ${{ matrix.java-version }}
run: ./gradlew clean publish shadow -x dokkaHtml
# Checkout code
- name: Checkout Code
uses: actions/checkout@v3
# Setup java and maven
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java-version }}
cache: 'gradle'
# Setup executable gradle
- name: Make Gradle executable
run: chmod +x gradlew
# Test building without dokka
- name: Build Jar with Java ${{ matrix.java-version }}
run: ./gradlew clean shadowJar test -x dokkaHtml -no-daemon
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# v0.1.0 - Snapshot
## v0.2.0 - Snapshot
* Added jitpack
* Added Sonatype
* Updated dependencies
* Updated workflows
* Updated to gradle kotlin dsl

## v0.1.0 - Snapshot
Hello, World!
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[![](https://jitci.com/gh/TheProgramSrc/SimpleCore-NetworkingModule/svg)](https://jitci.com/gh/TheProgramSrc/SimpleCore-NetworkingModule)
[![](https://jitpack.io/v/xyz.theprogramsrc/SimpleCore-NetworkingModule.svg)](https://jitpack.io/#xyz.theprogramsrc/SimpleCore-NetworkingModule)
[![](https://img.shields.io/nexus/s/xyz.theprogramsrc/networkingmodule?server=https%3A%2F%2Fs01.oss.sonatype.org)]()

# SimpleCore-NetworkingModule
Networking module for SimpleCore API.

# Documentation
* [Wiki](https://github.com/TheProgramSrc/SimpleCore-NetworkingModule/wiki)
* [JavaDocs](https://theprogramsrc.github.io/SimpleCore-NetworkingModule/)
* [JavaDocs](https://docs.theprogramsrc.xyz/SimpleCore-NetworkingModule/)
113 changes: 0 additions & 113 deletions build.gradle

This file was deleted.

Loading