Merge pull request #2201 from dadoonet/dependabot/maven/org.jetbrains… #795
This file contains hidden or 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
| name: Build and Deploy the master branch | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK 21 and Maven Central Repository | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Cache Docker images | |
| uses: AndreKurait/[email protected] | |
| with: | |
| key: fscrawler-docker-cache-${{ runner.os }}-${{ hashFiles('pom.xml') }} | |
| continue-on-error: true | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Create Maven settings.xml | |
| uses: s4u/[email protected] | |
| with: | |
| githubServer: false | |
| servers: '[{"id": "central", "username": "${{ secrets.CENTRAL_USERNAME }}", "password": "${{ secrets.CENTRAL_TOKEN }}"},{"id": "docker.io", "username": "${{ secrets.DOCKER_USERNAME }}", "password": "${{ secrets.DOCKER_PASSWORD }}"}]' | |
| - name: Deploy with Maven | |
| run: mvn --batch-mode deploy -DskipTests |