mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
ci(ci-actions): fix cleanup
- add changelog support
This commit is contained in:
parent
de14eccfcc
commit
0f6b299fc8
22
.github/workflows/build_release_bins.yml
vendored
22
.github/workflows/build_release_bins.yml
vendored
@ -68,6 +68,21 @@ jobs:
|
|||||||
path: "./ESP/.pio/build/${{ matrix.target_name }}${{ matrix.target_build_type }}/${{ env.FIRMWARE_NAME }}.bin"
|
path: "./ESP/.pio/build/${{ matrix.target_name }}${{ matrix.target_build_type }}/${{ env.FIRMWARE_NAME }}.bin"
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
release-openiris:
|
release-openiris:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
target_name: [
|
||||||
|
esp32AIThinker,
|
||||||
|
esp32M5Stack,
|
||||||
|
esp32Cam,
|
||||||
|
esp_eye,
|
||||||
|
wrover,
|
||||||
|
]
|
||||||
|
target_build_type: [
|
||||||
|
"",
|
||||||
|
_release,
|
||||||
|
_OTA,
|
||||||
|
]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
@ -85,11 +100,12 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- run: npm install -g conventional-changelog-angular
|
- run: npm install -g conventional-changelog
|
||||||
- run: npm install -g semantic-release@v19.0.5
|
- run: npm install -g semantic-release@v19.0.5
|
||||||
- run: npm install -g @semantic-release/exec
|
- run: npm install -g @semantic-release/exec
|
||||||
- run: npm install -g @semantic-release/git
|
- run: npm install -g @semantic-release/git
|
||||||
- run: npm install -g @semantic-release/release-notes-generator
|
- run: npm install -g @semantic-release/release-notes-generator
|
||||||
|
- run: npm install -g @semantic-release/changelog
|
||||||
- run: npm install -g @semantic-release/github
|
- run: npm install -g @semantic-release/github
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
@ -105,6 +121,4 @@ jobs:
|
|||||||
- name: "♻️ remove build artifacts"
|
- name: "♻️ remove build artifacts"
|
||||||
uses: geekyeggo/delete-artifact@v1
|
uses: geekyeggo/delete-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: |
|
name: ${{ matrix.target_name }}${{ matrix.target_build_type }}-firmware
|
||||||
build
|
|
||||||
release-openiris
|
|
||||||
128
.releaserc
128
.releaserc
@ -7,24 +7,53 @@
|
|||||||
[
|
[
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
{
|
{
|
||||||
"preset": "angular",
|
"preset": "conventionalcommits",
|
||||||
|
"parserOpts": {
|
||||||
|
"noteKeywords": [
|
||||||
|
"BREAKING CHANGE",
|
||||||
|
"BREAKING CHANGES",
|
||||||
|
"BREAKING"
|
||||||
|
]
|
||||||
|
},
|
||||||
"releaseRules": [
|
"releaseRules": [
|
||||||
|
{
|
||||||
|
"breaking": true,
|
||||||
|
"release": "major"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "feat",
|
||||||
|
"release": "minor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fix",
|
||||||
|
"release": "patch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "perf",
|
||||||
|
"release": "patch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "revert",
|
||||||
|
"release": "patch"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "docs",
|
"type": "docs",
|
||||||
|
"release": "minor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "style",
|
||||||
"release": "patch"
|
"release": "patch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "refactor",
|
"type": "refactor",
|
||||||
"scope": "core-*",
|
"release": "patch"
|
||||||
"release": "minor"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "feat",
|
"type": "test",
|
||||||
"scope": "feat-*",
|
"release": "patch"
|
||||||
"release": "minor"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "refactor",
|
"type": "build",
|
||||||
"release": "patch"
|
"release": "patch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -33,19 +62,89 @@
|
|||||||
"release": "patch"
|
"release": "patch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"scope": "no-release",
|
"type": "chore",
|
||||||
|
"release": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "no-release",
|
||||||
"release": false
|
"release": false
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
{
|
||||||
|
"preset": "conventionalcommits",
|
||||||
"parserOpts": {
|
"parserOpts": {
|
||||||
"noteKeywords": [
|
"noteKeywords": [
|
||||||
"BREAKING CHANGE",
|
"BREAKING CHANGE",
|
||||||
"BREAKING CHANGES"
|
"BREAKING CHANGES",
|
||||||
|
"BREAKING"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"writerOpts": {
|
||||||
|
"commitsSort": [
|
||||||
|
"subject",
|
||||||
|
"scope"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"presetConfig": {
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"type": "feat",
|
||||||
|
"section": "🍕 Features"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "feature",
|
||||||
|
"section": "🍕 Features"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fix",
|
||||||
|
"section": "🐛 Bug Fixes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "perf",
|
||||||
|
"section": "🔥 Performance Improvements"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "revert",
|
||||||
|
"section": "⏩ Reverts"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "docs",
|
||||||
|
"section": "📝 Documentation"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "style",
|
||||||
|
"section": "🎨 Styles"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "refactor",
|
||||||
|
"section": "🧑💻 Code Refactoring"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "test",
|
||||||
|
"section": "✅ Tests"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"section": "🤖 Build System"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "ci",
|
||||||
|
"section": "🔁 Continuous Integration"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@semantic-release/release-notes-generator",
|
[
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
{
|
||||||
|
"changelogTitle": "# 📦 Changelog \n[](https://conventionalcommits.org) \n[](https://semver.org) \n> All notable changes to this project will be documented in this file"
|
||||||
|
}
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"@semantic-release/exec",
|
"@semantic-release/exec",
|
||||||
{
|
{
|
||||||
@ -56,6 +155,7 @@
|
|||||||
[
|
[
|
||||||
"@semantic-release/github",
|
"@semantic-release/github",
|
||||||
{
|
{
|
||||||
|
"addReleases": "bottom",
|
||||||
"assets": [
|
"assets": [
|
||||||
{
|
{
|
||||||
"path": "./build/**/*.bin"
|
"path": "./build/**/*.bin"
|
||||||
@ -67,9 +167,11 @@
|
|||||||
"@semantic-release/git",
|
"@semantic-release/git",
|
||||||
{
|
{
|
||||||
"assets": [
|
"assets": [
|
||||||
"ESP/lib/library.json"
|
"ESP/lib/library.json",
|
||||||
|
"LICENSE*",
|
||||||
|
"CHANGELOG.md"
|
||||||
],
|
],
|
||||||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
"message": "chore(${nextRelease.type}): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user