Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
humonia-sys authored Jan 28, 2024
1 parent 7bc26ec commit 1d18451
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:

jobs:
build:
# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repository
Expand All @@ -27,4 +25,23 @@ jobs:
- name: Apply Patches
run: ./gradlew applyPatches
- name: Build
run: ./gradlew build
run: ./gradlew createReobfBundlerJar createReobfPaperclipJar createMojmapBundlerJar
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Folia Artifacts
path: ./build/libs/*.jar
- name: Set outputs
id: short_sha
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Publish Release
uses: softprops/action-gh-release@v1
with:
files: "build/libs/*.jar"
body: |
Commit ${{ steps.short_sha.outputs.sha_short }}
This release is automatically compiled by GitHub Actions
name: Folia Automation Compile ${{ steps.short_sha.outputs.sha_short }}
draft: false
tag_name: commit-${{ steps.short_sha.outputs.sha_short }}
generate_release_notes: true

0 comments on commit 1d18451

Please sign in to comment.