mirror of
https://github.com/colbster937/originblacklist.git
synced 2025-06-07 16:24:48 +00:00
35 lines
718 B
YAML
35 lines
718 B
YAML
name: Build Plugin
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
concurrency:
|
|
group: ${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Build Jar
|
|
run: |
|
|
gradle wrapper
|
|
./gradlew shadowJar
|
|
|
|
- name: Publish Jar
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: OriginBlacklist
|
|
path: build/libs/OriginBlacklist.jar |