aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-09-05 23:22:33 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-09-05 23:22:33 -0400
commit40432e083b11271cf3148b9c38156cf759436699 (patch)
tree592dc434b38dc2fba42b66943d9db7328bc63c0f /.github
downloadmeteor-trashy-addon-40432e083b11271cf3148b9c38156cf759436699.tar.xz
Initial code dump.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/dev_build.yml23
-rw-r--r--.github/workflows/pull_request.yml19
2 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/dev_build.yml b/.github/workflows/dev_build.yml
new file mode 100644
index 0000000..672d502
--- /dev/null
+++ b/.github/workflows/dev_build.yml
@@ -0,0 +1,23 @@
+name: Publish Development Build
+on: push
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v2
+ with:
+ java-version: 17
+ distribution: adopt
+ - name: Build
+ run: ./gradlew build
+ - name: Release
+ uses: marvinpinto/action-automatic-releases@latest
+ with:
+ repo_token: '${{ secrets.GITHUB_TOKEN }}'
+ automatic_release_tag: latest
+ prerelease: true
+ title: Dev Build
+ files: |
+ ./build/libs/*.jar
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
new file mode 100644
index 0000000..e60e76d
--- /dev/null
+++ b/.github/workflows/pull_request.yml
@@ -0,0 +1,19 @@
+name: Build Pull Request
+on: pull_request
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v2
+ with:
+ java-version: 17
+ distribution: adopt
+ - name: Build
+ run: ./gradlew build
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v2.2.4
+ with:
+ name: build-artifacts
+ path: build/libs