Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
Should be closer to what we use in Meteor
  • Loading branch information
Big-Iron-Cheems authored and MineGame159 committed Jan 17, 2025
1 parent 1d3a7d7 commit c5d2ed0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/dev_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,30 @@ on: push
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
distribution: adopt

- name: Build with Gradle
run: ./gradlew build

- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: latest
automatic_release_tag: snapshot
prerelease: true
title: Dev Build
files: |
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ on: pull_request
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
uses: gradle/actions/wrapper-validation@v4

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
distribution: adopt

- name: Build with Gradle
run: ./gradlew build

- name: Release
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c5d2ed0

Please sign in to comment.