Update GHA versions
This commit is contained in:
1 parent
8563bef68a
commit
ddb0213de4
3 files changed
+16
-17
No files matched your search
@@ -10,9 +10,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: microsoft
|
distribution: microsoft
|
||||||
java-version: 25
|
java-version: 25
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: "Compiled artifacts for Pull Request #${{github.event.number}}"
|
name: "Compiled artifacts for Pull Request #${{github.event.number}}"
|
||||||
path: build/libs
|
path: build/libs
|
||||||
@@ -7,13 +7,12 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: microsoft
|
distribution: microsoft
|
||||||
java-version: 25
|
java-version: 25
|
||||||
@@ -22,7 +21,7 @@ jobs:
|
|||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: Compiled artifacts for ${{ github.sha }}
|
name: Compiled artifacts for ${{ github.sha }}
|
||||||
path: build/libs
|
path: build/libs
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
extra-branch-curse-version: ${{ steps.properties.outputs.release-extra-curse-version }}
|
extra-branch-curse-version: ${{ steps.properties.outputs.release-extra-curse-version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the sources
|
- name: Checkout the sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
- name: Determine release type
|
- name: Determine release type
|
||||||
id: type
|
id: type
|
||||||
run: |
|
run: |
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
if ! ${{ steps.properties.outputs.release-extra-branch }}; then
|
if ! ${{ steps.properties.outputs.release-extra-branch }}; then
|
||||||
echo "matrix-to-exclude=Snapshots" >> $GITHUB_OUTPUT
|
echo "matrix-to-exclude=Snapshots" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- uses: actions/github-script@v7
|
- uses: actions/github-script@v9
|
||||||
env:
|
env:
|
||||||
READ_VERSION: ${{ steps.properties.outputs.mod_version }}
|
READ_VERSION: ${{ steps.properties.outputs.mod_version }}
|
||||||
with:
|
with:
|
||||||
@@ -78,11 +78,11 @@ jobs:
|
|||||||
echo "curse-versions=${{ needs.Get-Properties.outputs.curse-versions }}" >> $GITHUB_OUTPUT
|
echo "curse-versions=${{ needs.Get-Properties.outputs.curse-versions }}" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- name: Checkout the sources
|
- name: Checkout the sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.getbranchinfo.outputs.branchname }}
|
ref: ${{ steps.getbranchinfo.outputs.branchname }}
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: microsoft
|
distribution: microsoft
|
||||||
java-version: 25
|
java-version: 25
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
output="$(find build/libs/ ! -name "*-dev.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
|
output="$(find build/libs/ ! -name "*-dev.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
|
||||||
echo "jarname=$output" >> $GITHUB_OUTPUT
|
echo "jarname=$output" >> $GITHUB_OUTPUT
|
||||||
- name: Save build artifacts in the action
|
- name: Save build artifacts in the action
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: Artifacts for ${{ matrix.branch }}
|
name: Artifacts for ${{ matrix.branch }}
|
||||||
path: build/libs
|
path: build/libs
|
||||||
@@ -125,7 +125,7 @@ jobs:
|
|||||||
- name: Ask Gradle to publish
|
- name: Ask Gradle to publish
|
||||||
run: ./gradlew publish
|
run: ./gradlew publish
|
||||||
- name: Save publish folder in action's artifacts # Remove when automated
|
- name: Save publish folder in action's artifacts # Remove when automated
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: Maven publishing artifacts for ${{ matrix.branch }}
|
name: Maven publishing artifacts for ${{ matrix.branch }}
|
||||||
path: publish/carpet/fabric-carpet/
|
path: publish/carpet/fabric-carpet/
|
||||||
@@ -149,7 +149,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the sources
|
- name: Checkout the sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
- name: Merge docs
|
- name: Merge docs
|
||||||
@@ -166,15 +166,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Carpet sources
|
- name: Checkout Carpet sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: microsoft
|
distribution: microsoft
|
||||||
java-version: 25
|
java-version: 25
|
||||||
cache: 'gradle'
|
cache: 'gradle'
|
||||||
- name: Checkout wiki
|
- name: Checkout wiki
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
repository: ${{github.repository}}.wiki
|
repository: ${{github.repository}}.wiki
|
||||||
path: wiki
|
path: wiki
|
||||||
|
|||||||
Reference in new issue
Block a user