Skip to content

Update dependency commons-io:commons-io to v2.17.0 #603

Update dependency commons-io:commons-io to v2.17.0

Update dependency commons-io:commons-io to v2.17.0 #603

Workflow file for this run

name: Build with Maven
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: corretto
- name: Read .version file
id: version
run: echo "version=$(cat .github/.version)" >> $GITHUB_OUTPUT
- name: Change config.yml if stable
if: github.ref_name == 'stable' && github.event_name != 'pull_request'
run: |
sed -i "s|updateChannel:.*|updateChannel: stable|g" src/main/resources/config.yml
- name: Change config.yml if dev
if: github.ref_name == 'dev' && github.event_name != 'pull_request'
run: |
sed -i "s|updateChannel:.*|updateChannel: dev|g" src/main/resources/config.yml
- name: Change config.yml if stable/dev
if: github.ref_name == 'stable' || github.ref_name == 'dev'
run: |
sed -i "s|autoUpdate:.*|autoUpdate: true|g" src/main/resources/config.yml
- name: Build with Maven
run: |
sed -i "s|0.0.0|"$(cat .github/.version)"|g" pom.xml
mvn -B package --file pom.xml
rm -rf target/original-*.jar
- uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
target/stacker.jar
- uses: Kir-Antipov/[email protected]
if: github.ref_name == 'stable'
with:
version-type: release
modrinth-featured: true
github-prerelease: false
name: v${{ steps.version.outputs.version }}
version: ${{ steps.version.outputs.version }}
github-tag: v${{ steps.version.outputs.version }}
files: target/stacker.jar
java: |
17
loaders: |
spigot
paper
purpur
game-versions: |
>=1.11 <=1.20.6
modrinth-id: Ffx1tA97
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 507466
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Kir-Antipov/[email protected]
if: github.ref_name == 'dev'
with:
version-type: beta
modrinth-featured: false
github-prerelease: true
name: v${{ steps.version.outputs.version }}
version: ${{ steps.version.outputs.version }}
github-tag: v${{ steps.version.outputs.version }}
files: target/stacker.jar
java: |
21
loaders: |
spigot
paper
purpur
game-versions: |
>=1.11 <=1.20.6
modrinth-id: Ffx1tA97
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 507466
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}