diff --git a/.github/workflows/check-pull-request.yaml b/.github/workflows/build-pull-request.yaml similarity index 59% rename from .github/workflows/check-pull-request.yaml rename to .github/workflows/build-pull-request.yaml index 2759a9f5..53ac625e 100644 --- a/.github/workflows/check-pull-request.yaml +++ b/.github/workflows/build-pull-request.yaml @@ -1,13 +1,12 @@ -name: check-pull-request +name: Build pull request on: pull_request jobs: - check-pull-request: + build-pull-request: runs-on: macos-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 - run: | - ./gradlew build - ./gradlew -p tests build + ./gradlew build diff --git a/.github/workflows/publish-doc.yaml b/.github/workflows/publish-docs.yaml similarity index 56% rename from .github/workflows/publish-doc.yaml rename to .github/workflows/publish-docs.yaml index f5b45205..4e8b1892 100644 --- a/.github/workflows/publish-doc.yaml +++ b/.github/workflows/publish-docs.yaml @@ -2,11 +2,16 @@ name: Publish documentation on: push: - branches: [ "main" ] + branches: ["main"] workflow_dispatch: +env: + INSTANCE: 'Writerside/doc' + ARTIFACT: 'webHelpDOC2-all.zip' + DOCKER_VERSION: '241.16003' + jobs: - build: + build-docs: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -14,18 +19,25 @@ jobs: with: fetch-depth: 0 + - name: Build docs using Writerside Docker builder + uses: JetBrains/writerside-github-action@5a6920dbce3ef3169acbeb7e45c6cbdaf7e76bfa #v4 + with: + instance: ${{ env.INSTANCE }} + artifact: ${{ env.ARTIFACT }} + docker-version: ${{ env.DOCKER_VERSION }} + - name: Prepare static content run: | - export JAVA_HOME=$JAVA_HOME_21_X64 ./gradlew dokkatooGeneratePublicationHtml mkdir -p build/static - cp -rf build/dokka build/static/kdoc + cp -rf build/dokka/html build/static/kdoc + unzip artifacts/webHelpDOC2-all.zip -d build/static - name: Deploy Kdoc to github pages uses: JamesIves/github-pages-deploy-action@5c6e9e9f3672ce8fd37b9856193d2a537941e66c #v4.6.1 with: branch: gh-pages # The branch the action should deploy to. - folder: build/static/kdoc/html # The folder the action should deploy. + folder: build/static # The folder the action should deploy. - name: Save artifact with build results uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 @@ -33,4 +45,4 @@ jobs: name: docs path: | artifacts/${{ env.ARTIFACT }} - retention-days: 7 + retention-days: 7 \ No newline at end of file diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 8f0b2c6c..85bcd28c 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -1,4 +1,4 @@ -name: publish-release +name: Publish release on: workflow_dispatch: @@ -13,11 +13,11 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 - run: | - ./gradlew librarianReleaseStagingRepo + ./gradlew librarianPublishToMavenCentral gh release create $GITHUB_REF_NAME --title $GITHUB_REF_NAME --verify-tag --notes-from-tag env: - LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} - LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} - LIBRARIAN_SIGNING_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - LIBRARIAN_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }} + LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.LIBRARIAN_SONATYPE_USERNAME }} + LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.LIBRARIAN_SONATYPE_PASSWORD }} + LIBRARIAN_SIGNING_PRIVATE_KEY: ${{ secrets.LIBRARIAN_SIGNING_PRIVATE_KEY }} + LIBRARIAN_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.LIBRARIAN_SIGNING_PRIVATE_KEY_PASSWORD }} GH_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/.github/workflows/publish-snapshot.yaml b/.github/workflows/publish-snapshot.yaml index 756f356f..7e16006a 100644 --- a/.github/workflows/publish-snapshot.yaml +++ b/.github/workflows/publish-snapshot.yaml @@ -1,4 +1,4 @@ -name: publish-snapshot +name: Publish snapshot on: push: @@ -10,9 +10,9 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 - run: | - ./gradlew librarianPublishToSnapshots + ./gradlew librarianPublishToMavenSnapshots env: - LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} - LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} - LIBRARIAN_SIGNING_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - LIBRARIAN_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }} + LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.LIBRARIAN_SONATYPE_USERNAME }} + LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.LIBRARIAN_SONATYPE_PASSWORD }} + LIBRARIAN_SIGNING_PRIVATE_KEY: ${{ secrets.LIBRARIAN_SIGNING_PRIVATE_KEY }} + LIBRARIAN_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.LIBRARIAN_SIGNING_PRIVATE_KEY_PASSWORD }} diff --git a/.gitignore b/.gitignore index 9ed93374..3c00b8d8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,40 +11,16 @@ # Generated files build -/reports .kotlin # Place where the Android SDK path is set local.properties -# Secret used by sample apps -github_token - -# XCode +# XCode xcuserdata project.xcworkspace -# Mac OS Finder +# Mac OS Finder .DS_Store Thumbs.db -db.json -*.log - -# Docs -node_modules/ -/docs/public -/docs/.cache -!docs/public/_redirects -.deploy*/ -docs.json -package-lock.json -**/.project -.vscode/** -**/bin -.sqldelight - -# Local Netlify folder -.netlify -# IntelliJ plugin -intellij-plugin/mockJDK diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index d69494f0..aaa48772 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -7,74 +7,7 @@