Skip to content

Commit

Permalink
Created New Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
beanbeanjuice committed Feb 28, 2024
1 parent baa4e52 commit b644f28
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/codeql-gradle-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL and Gradle CI"
name: "Gradle CI"

on:
push:
Expand All @@ -8,10 +8,11 @@ on:
pull_request:
branches:
- integration
- master

jobs:
analyze:
name: Analyze
test:
name: Test
runs-on: ubuntu-latest
permissions:
actions: read
Expand Down Expand Up @@ -47,8 +48,3 @@ jobs:

- name: Build and Test with Gradle
run: ./gradlew test

- name: Upload JAR to HANGAR
env:
HANGAR_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
run: ./gradlew build publishPluginPublicationToHangar --stacktrace
44 changes: 44 additions & 0 deletions .github/workflows/gradle-publish.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Gradle Publish"

on:
push:
branches:
- master
- integration

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'oracle'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Change gradlew Permissions
run: chmod u+rwx gradlew

- name: Build and Test with Gradle
run: ./gradlew test

- name: Upload JAR to HANGAR
env:
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
run: ./gradlew build publishPluginPublicationToHangar --stacktrace

0 comments on commit b644f28

Please sign in to comment.