diff --git a/.github/workflows/job-publish.yml b/.github/workflows/job-publish.yml index a60f7c1..403a4d4 100644 --- a/.github/workflows/job-publish.yml +++ b/.github/workflows/job-publish.yml @@ -22,16 +22,20 @@ jobs: with: node-version: 14.x - - name: Create version tag - run: ./gradlew :nyxMark + - name: Publish to github + run: ./gradlew :nyxPublish + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish Maven + if: ${{ false }} run: ./.github/workflows/scripts/publish-maven.sh env: OSSRH_USERNAME: ${{ secrets.SONATYPE_OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} - name: Publish NPMJS + if: ${{ false }} run: ./.github/workflows/scripts/publish-npm.sh env: NPMJS_TOKEN: ${{ secrets.DHIS2_BOT_NPM_TOKEN }} \ No newline at end of file diff --git a/.nyx.yaml b/.nyx.yaml new file mode 100644 index 0000000..9782a25 --- /dev/null +++ b/.nyx.yaml @@ -0,0 +1,63 @@ +--- +# starting from the "simple" preset gives us: +# - the Conventional Commits convention +preset: "simple" +changelog: + path: "CHANGELOG.md" + sections: + "Added": "^feat$" + "Fixed": "^fix$" +releaseTypes: + enabled: + - mainline + - maturity + - internal + publicationServices: + - github + items: + mainline: + description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}" + filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)$" + gitPush: "true" + gitTag: "true" + matchBranches: "^(master|main)$" + matchEnvironmentVariables: + CI: "^true$" # only match this release type when running on CI servers + matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean + publish: "true" + maturity: + description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}" + collapseVersions: true + collapsedVersionQualifier: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}" + filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)(-(alpha|beta)(\\.([0-9]\\d*))?)?$" + gitPush: "true" + gitTag: "true" + matchBranches: "^(alpha|beta)$" + matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean + publish: "true" + publishPreRelease: "true" + # "internal" overrides the release type with the same name from the preset adding some qualifiers and is the global fallback for all release types + internal: + collapseVersions: true + collapsedVersionQualifier: "internal" + gitPush: "false" + gitTag: "false" + identifiers: + - + qualifier: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}" + position: "BUILD" + - + qualifier: "{{#short5}}{{releaseScope.finalCommit}}{{/short5}}" + position: "BUILD" + - + qualifier: "{{#timestampYYYYMMDDHHMMSS}}{{timestamp}}{{/timestampYYYYMMDDHHMMSS}}" + position: "BUILD" + publish: "false" + publishPreRelease: "false" +services: + github: + type: "GITHUB" + options: + AUTHENTICATION_TOKEN: "{{#environmentVariable}}GH_TOKEN{{/environmentVariable}}" + REPOSITORY_NAME: "expression-parser" + REPOSITORY_OWNER: "vgarciabnz" \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 5c27c43..31a0554 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -10,8 +10,4 @@ plugins { id("com.mooltiverse.oss.nyx") version "2.5.2" } -configure { - preset.set("extended") -} - rootProject.name = "expression-parser"