Skip to content

Commit

Permalink
Bump version and try a new release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shurik204 committed Feb 9, 2024
1 parent fd9af25 commit 7afb446
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
# https://github.com/FabricMC/fabric/blob/1.20.4/.github/workflows/release.yml
# Based on https://github.com/FabricMC/fabric-language-kotlin/blob/master/.github/workflows/release.yml
name: Release
on: [workflow_dispatch] # Manual trigger

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-22.04
container:
image: mcr.microsoft.com/openjdk/jdk:21-ubuntu
options: --user root
steps:
- name: Install git
run: apt update && apt install git -y && git --version
- name: Add safe directory
run: git config --global --add safe.directory /__w/$REPOSITORY_NAME/$REPOSITORY_NAME
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'
cache-dependency-path: |
**/build.gradle*
**/gradle.properties
settings.gradle*
**/gradle-wrapper.properties
- uses: FabricMC/fabric-action-scripts@v2
id: changelog
with:
context: changelog
workflow_id: release.yml
- name: Change wrapper permissions
run: chmod +x ./gradlew
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build publishMods --stacktrace -Porg.gradle.parallel.threads=4
- run: ./gradlew build publishMods --stacktrace --no-daemon
env:
REPOSITORY_NAME: ${{ github.event.repository.name }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parchment_version=2023.07.16
loader_version=0.15.3

# Mod Properties
mod_version=7.2.4
mod_version=7.2.5
maven_group=sonar.fluxnetworks
archives_base_name=FluxNetworks

Expand Down

0 comments on commit 7afb446

Please sign in to comment.