-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/MeowMC/PortalGun
- Loading branch information
Showing
1 changed file
with
13 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,8 @@ | |
name: Java CI with Gradle | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
|
@@ -22,21 +20,15 @@ jobs: | |
java-version: 1.8 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: # optional, default is artifact | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: | ||
# The desired behavior if no files are found using the provided path. | ||
Available Options: | ||
warn: Output a warning but do not fail the action | ||
error: Fail the action with an error message | ||
ignore: Do not output any warnings or errors, the action does not fail | ||
|
||
if-no-files-found: # optional, default is warn | ||
# Duration after which artifact will expire in days. 0 means using default retention. | ||
run: gradle build additionalCopy | ||
env: | ||
BUILD_RELEASE: ${{ github.event.prerelease == false }} | ||
|
||
- name: Upload assets to a Release | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'build/to_upload/*' | ||
# secrets.GITHUB_TOKEN | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |