From 1838bf5ee138283babbabf2b1b749f8abee20c1f Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Sun, 25 Feb 2024 13:24:31 -0800 Subject: [PATCH] ci: Match format of other ReVanced repos --- .github/workflows/release-build.yml | 2 +- .releaserc | 64 +++++++++++++++++++++++++++++ .releaserc.js | 9 ---- 3 files changed, 65 insertions(+), 10 deletions(-) create mode 100644 .releaserc diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index ddd40690cd..2c1a46ad5b 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -11,7 +11,7 @@ on: - "android/**" - "assets/**" - "lib/**" - - ".releaserc.js" + - ".releaserc" - "pubspec.yaml" jobs: diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000000..dd16a3db79 --- /dev/null +++ b/.releaserc @@ -0,0 +1,64 @@ +{ + "branches": [ + "main", + { + "name": "dev", + "prerelease": true + } + ], + "plugins": [ + [ + "@semantic-release/commit-analyzer", { + "releaseRules": [ + { "type": "build", "scope": "Needs bump", "release": "patch" } + ] + } + ], + "@semantic-release/changelog", + "@semantic-release/release-notes-generator", + [ + "@droidsolutions-oss/semantic-release-update-file", + { + "files": [ + { + "path": ["pubspec.yaml"], + "type": "flutter", + "branches": ["main", "dev"] + } + ] + } + ], + [ + "@semantic-release/exec", + { + "prepareCmd": "flutter build apk" + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "pubspec.yaml" + ] + } + ], + [ + "@semantic-release/github", + { + "assets": [ + { + "path": "build/app/outputs/apk/release/revanced-manager*.apk" + } + ], + "successComment": false + } + ], + [ + "@saithodev/semantic-release-backmerge", + { + "backmergeBranches": [{"from": "main", "to": "dev"}], + "clearWorkspace": true + } + ] + ] +} \ No newline at end of file diff --git a/.releaserc.js b/.releaserc.js index 8903405256..dd6d5607ed 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -29,15 +29,6 @@ module.exports = { types: [ { type: "feat", section: "Features" }, { type: "fix", section: "Bug Fixes" }, - { type: "docs", section: "Documentation" }, - { type: "style", section: "Styles" }, - { type: "refactor", section: "Code Refactoring" }, - { type: "perf", section: "Performance Improvements" }, - { type: "test", section: "Tests" }, - { type: "build", section: "Build System" }, - { type: "ci", section: "Continuous Integration" }, - { type: "chore", section: "Chores" }, - { type: "revert", section: "Reverts" }, ] }, writerOpts: {