Skip to content

Commit

Permalink
update editorconfig and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
woodiertexas committed Jan 8, 2025
1 parent c3b3baf commit be9ed4c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = false
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2
15 changes: 5 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.

name: build
on:
push:
Expand All @@ -22,13 +17,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v4
- name: cache gradle
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -37,14 +32,14 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: setup jdk 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: build
run: ./gradlew build --no-daemon
- name: capture build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-java@v3

- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

- name: Build and publish with Gradle
run: ./gradlew modrinth publish
env:
BUILD_RELEASE: ${{github.event.prelease == false}}
MODRINTH_TOKEN: ${{secrets.MODRINTH}}
CHANGELOG: ${{ github.event.release.body }}
- name: Upload build artifacts
uses: AButler/[email protected]
run: ./gradlew assemble

- uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659
with:
files: 'build/libs/*; build/libs/*-sources.jar; !build/libs/*-dev.jar'
repo-token: ${{secrets.GITHUB_TOKEN}}
modrinth-id: dBOB3VZD
modrinth-token: ${{ secrets.MODRINTH }}

github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit be9ed4c

Please sign in to comment.