Skip to content

Commit

Permalink
chore: create release CI job
Browse files Browse the repository at this point in the history
Signed-off-by: Gerard Hickey <[email protected]>
  • Loading branch information
hickey committed Feb 5, 2024
1 parent a7060ed commit 58e9870
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-meshchat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release MeshChat Package
on:
pull_request:
types: [closed]
branches: [release]
env:
IPK_DIR: package/meshchat-ipkg
jobs:
calculate-version-number:
runs-on: registry.gitlab.com/wt0f/gitlab-runner-images/node:latest
steps:
- uses: actions/checkout@v3
- run: npm install -g release-it @release-it/conventional-changelog @commitlint/config-conventional @commitlint/cli auto-changelog
- run: npx release-it --ci


# - uses: actions/upload-artifact@v3
# with:
# name: meshchat
# path: |
# VERSION

# create-meshchat-package:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - run: package/populate-meshchat-fs.sh $IPK_DIR
# - run: package/update-version.sh $IPK_DIR
# - run: package/ipk-build.sh $IPK_DIR
# - uses: actions/upload-artifact@v3
# with:
# name: meshchat
# path: |
# meshchat_*.ipk
# VERSION
30 changes: 30 additions & 0 deletions .release-it.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
git:
commit: true
commitMessage: "chore(release): ${version}"
commitArgs: ""
tag: true
tagName: "v${version}"
tagAnnotation: "Automated release: ${version}"
push: true
requireBranch: release
requireCommits: true
changelog: "npx auto-changelog --stdout --commit-limit false"

github:
release: true
releaseName: "v${version}"
assets: ["*.ipk", "*.deb"]

npm:
publish: false

plugins:
"@release-it/conventional-changelog":
infile: CHANGELOG.md
preset:
name: conventionalcommits
types:
- type: feat
section: Features
- type: fix
section: Bug Fixes

0 comments on commit 58e9870

Please sign in to comment.