mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-13 19:11:37 +01:00
Update nodejs and github-actions
This commit is contained in:
parent
0ec7de0df2
commit
0f48bf6428
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -15,12 +15,12 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0 # needed for versioning
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: |
|
||||
@ -30,7 +30,7 @@ jobs:
|
||||
cache: 'gradle'
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew clean spotlessCheck test build
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: artifacts
|
||||
path: build/release/*
|
||||
@ -48,16 +48,16 @@ jobs:
|
||||
name: artifacts
|
||||
path: build/release
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Docker metadata
|
||||
id: metadata
|
||||
uses: docker/metadata-action@v4
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository }}
|
||||
# Always tagged as the pushed branch (ex. master)
|
||||
@ -70,7 +70,7 @@ jobs:
|
||||
flavor: |
|
||||
latest=false
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -10,12 +10,12 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0 # needed for versioning
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: |
|
||||
|
6
.github/workflows/translation-checker.yml
vendored
6
.github/workflows/translation-checker.yml
vendored
@ -14,10 +14,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
- name: Install deps
|
||||
working-directory: .github/translation-checker
|
||||
run: npm ci
|
||||
|
@ -50,7 +50,7 @@ spotless {
|
||||
}
|
||||
|
||||
node {
|
||||
version.set("16.15.0")
|
||||
version.set("20.14.0")
|
||||
download.set(true)
|
||||
nodeProjectDir.set(file("webapp/"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user