diff --git a/.github/workflows/release-meshchat.yaml b/.github/workflows/release-meshchat.yaml new file mode 100644 index 0000000..f560c0b --- /dev/null +++ b/.github/workflows/release-meshchat.yaml @@ -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 \ No newline at end of file diff --git a/.release-it.yaml b/.release-it.yaml new file mode 100644 index 0000000..249beaf --- /dev/null +++ b/.release-it.yaml @@ -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 \ No newline at end of file