Skip to content

whar

whar #89

Workflow file for this run

name: build
on: [ workflow_dispatch, push, pull_request ]
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip]')"
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: setup gradle
uses: gradle/[email protected]
with:
cache-read-only: false
- name: do the build
run: .\gradlew.bat clean assemble
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: unlimited-artifacts
path: |
build/libs/merged/*.jar
*/build/libs/*.jar
- name: make artifact readable
run: attrib -r build/libs/merged/*.jar
- name: upload artifacts to discord
uses: hugoalh/[email protected]
with:
key: ${{ secrets.DISCORD_WEBHOOK }}
content: '# Build #${{ github.run_number }}'
files: 'build/libs/merged/*.jar'