mirror of
https://github.com/colbster937/originblacklist.git
synced 2025-12-15 15:27:41 +00:00
1.0.2
This commit is contained in:
35
.github/workflows/build.yml
vendored
Normal file
35
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Auto-update clients
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user