forked from cfmlprojects/runwar
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,229 additions
and
830 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
patreon: ortussolutions |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by separate terms of service, privacy policy, and support documentation. | ||
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created | ||
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle | ||
|
||
name: Runwar CI | ||
|
||
# If your target is master or develop branch | ||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
# We get the required keys | ||
workflow_call: | ||
secrets: | ||
AWS_ACCESS_KEY: | ||
required: true | ||
AWS_ACCESS_SECRET: | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
# Do the build | ||
- name: Build with Gradle | ||
run: ./gradlew --refresh-dependencies | ||
|
||
# Creating S3 destination folder name based on the version and copying just the jar into temp directory | ||
- name: Change folder source | ||
run: | | ||
echo "folderName=`basename -s .jar dist/libs/runwar-*.jar | sed -e 's/runwar-//'`" >> $GITHUB_ENV | ||
mkdir dist/libs/temp && cp dist/libs/runwar-*.jar dist/libs/temp | ||
- name: Upload JAR to S3 | ||
|
||
# Run the upload on master branch | ||
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }} | ||
|
||
uses: jakejarvis/s3-sync-action@master | ||
with: | ||
args: --acl public-read | ||
env: | ||
AWS_S3_BUCKET: "downloads.ortussolutions.com" | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }} | ||
SOURCE_DIR: "dist/libs/temp/" | ||
DEST_DIR: "cfmlprojects/runwar/${{env.folderName}}" |
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 |
---|---|---|
@@ -1,29 +1,31 @@ | ||
/bin | ||
/dist | ||
/lib | ||
/build | ||
/undertow | ||
/testlibs | ||
src/test/resources/war/simple.war/WEB-INF/urlrewrite.xml | ||
src/test/resources/war/simple.war/WEB-INF/logs/ | ||
src/test/resources/work/ | ||
.gradle | ||
gradle-app.setting | ||
gradle/jvm | ||
!gradle-wrapper.jar | ||
.gradletasknamecache | ||
.nb-gradle | ||
|
||
#ignore the various too-lazy-to-fix-and-lame-anyway bash tests | ||
gradle/*.sh | ||
!gradle/jvm-setup.sh | ||
testwars | ||
|
||
#IDE files | ||
*.project | ||
.settings | ||
.idea | ||
*.iml | ||
*.ipr | ||
*.iws | ||
/settings.xml | ||
/bin | ||
/dist | ||
/lib | ||
/libs | ||
/build | ||
/undertow | ||
/testlibs | ||
src/test/resources/war/simple.war/WEB-INF/urlrewrite.xml | ||
src/test/resources/war/simple.war/WEB-INF/logs/ | ||
src/test/resources/work/ | ||
.gradle | ||
gradle-app.setting | ||
gradle/jvm | ||
!gradle-wrapper.jar | ||
.gradletasknamecache | ||
.nb-gradle | ||
|
||
#ignore the various too-lazy-to-fix-and-lame-anyway bash tests | ||
gradle/*.sh | ||
!gradle/jvm-setup.sh | ||
testwars | ||
|
||
#IDE files | ||
*.project | ||
.settings | ||
.idea | ||
*.iml | ||
*.ipr | ||
*.iws | ||
/settings.xml | ||
.classpath |
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
Oops, something went wrong.