Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasualix committed Mar 23, 2024
1 parent 07ed18f commit 5fa6d3a
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
name: Build

on: [ pull_request, push, workflow_dispatch ]
on: [ push, pull_request, workflow_dispatch ]

jobs:
Build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Get github short hash
id: github_short_hash
run: echo "result=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT
- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
distribution: 'adopt'
java-version: 17
- name: Cache
uses: actions/cache@v3
with:
Expand All @@ -28,13 +25,8 @@ jobs:
run: |
chmod +x gradlew
./gradlew build
- name: Upload artifacts (fabric)
uses: actions/upload-artifact@v3
with:
name: Artifacts-fabric
path: ${{ github.workspace }}/fabric/build/libs
- name: Upload artifacts (forge)
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts-forge
path: ${{ github.workspace }}/forge/build/libs
path: ${{ github.workspace }}/build/libs

0 comments on commit 5fa6d3a

Please sign in to comment.