mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Remove release action for Discourse
This commit is contained in:
parent
f44658ad2a
commit
e8dad56af9
2 changed files with 0 additions and 52 deletions
14
.github/workflows/release_actions.yml
vendored
14
.github/workflows/release_actions.yml
vendored
|
@ -21,20 +21,6 @@ jobs:
|
||||||
|
|
||||||
${{ github.event.release.body }}
|
${{ 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:
|
mixpanel_release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -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));
|
|
||||||
}
|
|
Loading…
Reference in a new issue