Skip to content

Bump JamesIves/github-pages-deploy-action from 4.6.0 to 4.6.1 #275

Bump JamesIves/github-pages-deploy-action from 4.6.0 to 4.6.1

Bump JamesIves/github-pages-deploy-action from 4.6.0 to 4.6.1 #275

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: maven
- name: Cache SonarCloud packages
uses: actions/cache@v4.0.2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build with Maven
run: xvfb-run -a mvn -B verify
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
branch: gh-pages
folder: com.github.camel-tooling.dap.eclipse.updatesite/target/repository
if: ${{ github.ref_name == 'main' }}
- name: Sonar analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=camel-tooling_camel-dap-client-eclipse
if: ${{ github.ref_name == 'main' }}