Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeRNG committed Mar 4, 2023
2 parents cd3e380 + 5513071 commit 4c30458
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 32 deletions.
63 changes: 34 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
name: Build

on:
push:
branches:
- 'master'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
run: ./gradlew build '-Pversion=${{ github.run_number }}'
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: DFScript
path: ./build/libs/CodeClient*.jar
- name: Publish Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "Build-${{ github.run_number }}"
prerelease: false
files: |
./build/libs/CodeClient-${{ github.run_number }}.jar
on:
push:
branches:
- master
permissions:
id-token: "write"
contents: "write"
packages: "write"
pull-requests: "read"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: "temurin"
- name: Build with Gradle
run: ./gradlew build '-Pversion=${{ github.run_number }}'
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: CodeClient
path: ./build/libs/CodeClient*.jar
- name: Publish Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ github.run_number }}-beta"
prerelease: true
files: |
./build/libs/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CodeClient
A DiamondFire utility client for advanced coding.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
// withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
rename { "${it}_${project.archivesBaseName}" }
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
loader_version=0.14.14
# Mod Properties
mod_version=1.0-SNAPSHOT
mod_version=1.0
maven_group=dev.dfonline
archives_base_name=CodeClient
# Dependencies
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 4c30458

Please sign in to comment.