chore: Bump dependencies #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-snapshot | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
publish-snapshot: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
strategy: | |
matrix: | |
loader: [common, fabric, forge, neoforge] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: Extracting version from properties | |
shell: bash | |
run: echo "version=$(cat gradle.properties | grep -w "\bversion" | cut -d= -f2)" >> $GITHUB_OUTPUT | |
id: extract-version | |
- name: Bumping version | |
uses: TwelveIterationMods/bump-version@v1 | |
with: | |
version: ${{ steps.extract-version.outputs.version }} | |
bump: patch | |
id: bump-version | |
- name: Publish | |
run: ./gradlew :${{ matrix.loader }}:publish '-Pversion=${{ steps.bump-version.outputs.version }}-SNAPSHOT' '-PtwelveIterationsNexusUsername=${{ secrets.NEXUS_USER }}' '-PtwelveIterationsNexusPassword=${{ secrets.NEXUS_PASSWORD }}' |