diff --git a/.github/workflows/discord-release.yaml b/.github/workflows/discord-release.yaml new file mode 100644 index 0000000..5133a20 --- /dev/null +++ b/.github/workflows/discord-release.yaml @@ -0,0 +1,27 @@ +name: Discord Release Notification +on: + release: + types: [published] + workflow_dispatch: + inputs: + test_version: + description: 'Test version number' + default: '1.0.0-test' + + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send Discord notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + run: | + VERSION="${{ github.event.release.tag_name || github.event.inputs.test_version }}" + REPO="${{ github.event.repository.name }}" + URL="${{ github.event.release.html_url || github.server_url }}/${{ github.repository }}" + + curl -H "Content-Type: application/json" \ + -X POST \ + -d "{\"content\": \"**v${VERSION} release of ${REPO} available now on GitHub**\n${URL}\"}" \ + $DISCORD_WEBHOOK \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f2942ae..47fd3ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nimbletools/ntcli", - "version": "0.4.0", + "version": "0.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nimbletools/ntcli", - "version": "0.4.0", + "version": "0.4.1", "license": "Apache-2.0", "dependencies": { "@types/inquirer": "^9.0.8", diff --git a/package.json b/package.json index 9c562f4..cd87de5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nimbletools/ntcli", - "version": "0.4.0", + "version": "0.4.1", "description": "Command-line interface for NimbleTools MCP Platform - deploy, manage, and integrate MCP servers", "keywords": [ "mcp",