From 6d4e44d265e3f86b7283cca21723f16e6723cae0 Mon Sep 17 00:00:00 2001 From: cubewhy Date: Mon, 1 Jan 2024 15:08:57 +0800 Subject: [PATCH] workflow --- .github/dependabot.yml | 7 +++++++ .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..9b233ebd --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: gradle + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b56bed9f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: build + +on: + - push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Java setup + uses: actions/setup-java@v2 + with: + distribution: "zulu" + java-version: 17 + cache: "gradle" + - name: Set outputs + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - name: Build + run: chmod +x ./gradlew && ./gradlew build + - name: Upload build artifacts + uses: actions/upload-artifact@v2 + with: + name: celestial + path: build/libs/celestial-*.jar \ No newline at end of file