Skip to content

Commit

Permalink
chore(ci): update release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedykori committed Aug 18, 2022
1 parent f26f7b3 commit b311810
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ jobs:
sudo apt-get update
sudo apt-get install python3.10 nodejs
pip install -r requirements/base.txt pyinstaller~=5.2 staticx~=0.13.6
npm install @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits
- name: Package the app
run: |
pyinstaller app/__main__.py --hidden-import apps/imp --collect-all app --name idr_client_temp -F
pyinstaller app/__main__.py --collect-all app --name idr_client_temp -F
staticx dist/idr_client_temp dist/idr_client
./dist/idr_client --version
- name: Create a release
run: npx semantic-release
env:
Expand Down
54 changes: 48 additions & 6 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,54 @@
branches: ["main"]
dryRun: false
dryRun: true
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- [ "@semantic-release/commit-analyzer", {
parserOpts: {
noteKeywords: [ "BREAKING CHANGE", "BREAKING CHANGES", "BREAKING" ],
},
preset: "angular",
releaseRules: [
{ type: "chore", scope: "conf", release: "patch" },
{ type: "chore", scope: "config", release: "patch" },
{ type: "chore", scope: "core", release: "minor" },
{ type: "chore", scope: "deps", release: "patch" }
]
}
]
- [ "@semantic-release/release-notes-generator", {
parserOpts: {
noteKeywords: [ "BREAKING CHANGE", "BREAKING CHANGES", "BREAKING" ],
},
preset: "conventionalcommits",
presetConfig: {
types: [
{ type: "chore", scope: "deps", section: "Dependency Updates" },
{ type: "chore", section: "Refactors" },
{ type: "docs", hidden: true },
{ type: "feat", section: "Features" },
{ type: "fix", section: "Bug Fixes" },
{ type: "perf", hidden: true },
{ type: "refactor", section: "Refactors" },
{ type: "style", hidden: true },
{ type: "test", hidden: true }
]
},
writerOpts: {
commitsSort: [ "subject", "scope" ],
}
}
]
- [ "@semantic-release/changelog",
changelogFile: "docs/CHANGELOG.md"
]
- [ "@semantic-release/git", {
assets: [ "docs/*" ],
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
- ["@semantic-release/github",
assets: [
{path: "dist/idr_client", label: IDR Client Binary}
]
assets: [
{path: "dist/idr_client", label: IDR Client Binary}
]
]

tagFormat: v${version}

0 comments on commit b311810

Please sign in to comment.