Skip to content

Add AWS SQS Plugin (#333) #314

Add AWS SQS Plugin (#333)

Add AWS SQS Plugin (#333) #314

Workflow file for this run

name: springwolf-ui
on:
push:
branches:
- master
paths:
- '.github/workflows/springwolf-ui.yml'
- 'springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.json'
- 'springwolf-examples/springwolf-cloud-stream-example/src/test/resources/asyncapi.json'
- 'springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.json'
- 'springwolf-ui/**'
pull_request:
types: [ opened, synchronize, ready_for_review ]
env:
project: springwolf-ui
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Check formatting (before running tests)
run: ./gradlew -p ${{ env.project }} spotlessCheck
- name: Build
run: ./gradlew -p ${{ env.project }} build
- name: Publish package
if: github.ref == 'refs/heads/master'
run: ./gradlew -p ${{ env.project }} publish
env:
ORG_GRADLE_PROJECT_SNAPSHOT: true
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGKEY}}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD}}
ORG_GRADLE_PROJECT_MAVEN_URL: https://s01.oss.sonatype.org/content/repositories/snapshots/
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
- name: Build gh-pages
if: github.ref == 'refs/heads/master'
run: ./gradlew -p ${{ env.project }} buildPages
- name: Deploy to gh pages 🚀
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ${{ env.project }}/dist/springwolf-ui/