Skip to content

Commit

Permalink
修改构建脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Dec 4, 2024
1 parent d743a82 commit 5b6887c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 45 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/21_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: CI for AnvilCraftMod 1.21.1+
on: workflow_call

jobs:
gametest:
secrets: inherit
uses: ./.github/workflows/21_gametest.yml
build:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -53,10 +50,15 @@ jobs:
path: build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar

- name: Publish to maven
if: ${{ github.event.inputs.publish == 'true' }}
run: ./gradlew publish
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
continue-on-error: true

- name: gametest
uses: Anvil-Dev/[email protected]
with:
mod: build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar
extra-mods: patchouli:1.21-87-neoforge cloth-config:15.0.140+neoforge
36 changes: 0 additions & 36 deletions .github/workflows/21_gametest.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/21_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Pull Request Check for AnvilCraftMod 1.21.1+
on: workflow_call

jobs:
gametest:
secrets: inherit
uses: ./.github/workflows/21_gametest.yml
build:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -51,3 +48,9 @@ jobs:
with:
name: "${{ steps.properties.outputs.mod_name }} ${{ steps.version.outputs.version }}"
path: build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar

- name: gametest
uses: Anvil-Dev/[email protected]
with:
mod: build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar
extra-mods: patchouli:1.21-87-neoforge cloth-config:15.0.140+neoforge
1 change: 0 additions & 1 deletion .github/workflows/21_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
path: build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar

- name: Publish to maven
if: ${{ github.event.inputs.publish == 'true' }}
run: ./gradlew publish
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Pull Request Check
on:
workflow_dispatch:
push:
pull_request:
branches:
- releases/**
paths:
Expand Down

0 comments on commit 5b6887c

Please sign in to comment.