From e8dad56af97f9c252f5aaf90e805b7c12619048a Mon Sep 17 00:00:00 2001 From: Joseph Lyons Date: Tue, 7 Feb 2023 18:26:55 -0500 Subject: [PATCH] Remove release action for Discourse --- .github/workflows/release_actions.yml | 14 ---------- script/discourse_release | 38 --------------------------- 2 files changed, 52 deletions(-) delete mode 100755 script/discourse_release diff --git a/.github/workflows/release_actions.yml b/.github/workflows/release_actions.yml index cc1c66d9495a126410cee1d7dc09e943f80ffb29..4a9d777769d7b75108d9c65824f8165ebe62ac17 100644 --- a/.github/workflows/release_actions.yml +++ b/.github/workflows/release_actions.yml @@ -21,20 +21,6 @@ jobs: ${{ github.event.release.body }} ``` - discourse_release: - if: ${{ ! github.event.release.prerelease }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install Node - uses: actions/setup-node@v2 - with: - node-version: "19" - - run: > - node "./script/discourse_release" - ${{ secrets.DISCOURSE_RELEASES_API_KEY }} - ${{ github.event.release.tag_name }} - ${{ github.event.release.body }} mixpanel_release: runs-on: ubuntu-latest steps: diff --git a/script/discourse_release b/script/discourse_release deleted file mode 100755 index c233bf18725dac4b0c5d543526d813a66503452f..0000000000000000000000000000000000000000 --- a/script/discourse_release +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env node --redirect-warnings=/dev/null - -main(); - -async function main() { - const apiKey = process.argv[2] - const zedVersion = process.argv[3] - const releaseNotes = process.argv[4] - const postBody = ` - 📣 Zed ${zedVersion} was just released! - - Restart your Zed or head to the [releases page](https://zed.dev/releases/latest) to grab it. - - --- - - ${releaseNotes} - ` - - const title = `${zedVersion} Release Notes` - - const options = { - method: "POST", - headers: { - "Api-Key": apiKey, - "Api-Username": "system" - }, - body: new URLSearchParams({ - title: title, - raw: postBody, - category: "8" - }) - }; - - fetch("https://forum.zed.dev/posts.json", options) - .then(response => response.json()) - .then(response => console.log(response)) - .catch(err => console.error(err)); -} \ No newline at end of file