Skip to content

Catch the right exception, reduce patch size (and update work) a bit #153

Catch the right exception, reduce patch size (and update work) a bit

Catch the right exception, reduce patch size (and update work) a bit #153

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches:
- 'dev/**'
jobs:
build:
runs-on: ubuntu-22.04
container:
image: gradle:8.6.0-jdk17
options: --user root
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: gradle/wrapper-validation-action@v1
# Generate the build number based on tags to allow per branch build numbers, not something github provides by default.
- name: Generate build number
id: buildnumber
uses: onyxmueller/build-tag-number@v1
with:
token: ${{ secrets.github_token }}
prefix: "build/${{ github.ref }}"
- run: git config --global user.email "nobody@example.com"
- run: git config --global user.name "Nobody"
- run: ./gradlew applyPatches
- run: ./gradlew build publish -x check -x test --stacktrace
working-directory: quilt-loom
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
SNAPSHOTS_URL: ${{ secrets.SNAPSHOTS_URL }}
SNAPSHOTS_USERNAME: ${{ secrets.SNAPSHOTS_USERNAME }}
SNAPSHOTS_PASSWORD: ${{ secrets.SNAPSHOTS_PASSWORD }}