Skip to content

Commit

Permalink
Next version (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
caring-coder committed Feb 26, 2024
2 parents 5de966f + 99e30da commit f44121d
Show file tree
Hide file tree
Showing 10 changed files with 166 additions and 222 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Static Analysis

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '23 7 * * 1'

jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 360

permissions:
security-events: write
actions: read
contents: write
checks: write
pull-requests: write

strategy:
fail-fast: false
matrix:
language: [ 'java-kotlin' ]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'

- run: mvn -B -ntp verify

- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

- uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
49 changes: 0 additions & 49 deletions .github/workflows/codeql.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/integrate-ubuntu.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/integrate-windows.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will build a Java project with Maven,
# and cache/restore any dependencies to improve the workflow execution time
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Continuous Integration

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '23 7 * * 1'

permissions:
pull-requests: read

jobs:
ci:
name: Continuous Integration
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]

runs-on: ${{ matrix.os }}

permissions:
actions: read
contents: read
security-events: write

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'

- run: mvn -B -ntp verify
24 changes: 9 additions & 15 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Deploy static content to Pages
name: Deploy Site

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -21,27 +20,22 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'

- name: Build with Maven
run: mvn -B -ntp verify site -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
- run: mvn -B -ntp verify site -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

- name: Setup Pages
uses: actions/configure-pages@v4
- uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@v3
with:
path: 'target/site'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- uses: actions/deploy-pages@v4
35 changes: 0 additions & 35 deletions .github/workflows/qodana.yml

This file was deleted.

17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Publish package to the Maven Central Repository
name: Publish to Central Repository

on:
workflow_dispatch:
release:
types: [created]
workflow_dispatch:


jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Maven Central Repository
uses: actions/setup-java@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
Expand All @@ -19,14 +21,11 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- id: install-secret-key
name: Install gpg secret key
run: |
- run: |
cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish package
run: mvn -B -ntp clean deploy -P gpg -Dgpg.passphrase=${{ secrets.GPG_SECRET_PASS }}
- run: mvn -B -ntp deploy -P gpg -Dgpg.passphrase=${{ secrets.GPG_SECRET_PASS }}
env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_NAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASS }}

0 comments on commit f44121d

Please sign in to comment.