2022-10-06 04:22:53 +03:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
2022-10-12 01:25:36 +03:00
|
|
|
|
2022-10-06 04:22:53 +03:00
|
|
|
jobs:
|
2022-10-12 01:25:36 +03:00
|
|
|
discord_release:
|
2022-10-06 04:22:53 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Discord Webhook Action
|
|
|
|
uses: tsickert/discord-webhook@v5.3.0
|
2022-10-28 01:43:00 +03:00
|
|
|
if: ${{ ! github.event.release.prerelease }}
|
2022-10-06 04:22:53 +03:00
|
|
|
with:
|
|
|
|
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
|
|
|
content: |
|
2022-10-12 01:31:17 +03:00
|
|
|
📣 Zed ${{ github.event.release.tag_name }} was just released!
|
2023-02-02 21:38:41 +03:00
|
|
|
|
2022-11-13 05:39:08 +03:00
|
|
|
Restart your Zed or head to https://zed.dev/releases/latest to grab it.
|
2023-02-02 21:38:41 +03:00
|
|
|
|
2022-10-06 04:22:53 +03:00
|
|
|
```md
|
2022-11-17 04:02:15 +03:00
|
|
|
# Changelog
|
2023-02-02 21:38:41 +03:00
|
|
|
|
2022-10-06 04:22:53 +03:00
|
|
|
${{ github.event.release.body }}
|
2022-11-02 21:55:27 +03:00
|
|
|
```
|
2022-11-03 08:48:49 +03:00
|
|
|
mixpanel_release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: "3.10.5"
|
|
|
|
architecture: "x64"
|
|
|
|
cache: "pip"
|
|
|
|
- run: pip install -r script/mixpanel_release/requirements.txt
|
2023-02-02 21:38:41 +03:00
|
|
|
- run: >
|
2022-11-03 20:06:19 +03:00
|
|
|
python script/mixpanel_release/main.py
|
|
|
|
${{ github.event.release.tag_name }}
|
|
|
|
${{ secrets.MIXPANEL_PROJECT_ID }}
|
|
|
|
${{ secrets.MIXPANEL_SERVICE_ACCOUNT_USERNAME }}
|
|
|
|
${{ secrets.MIXPANEL_SERVICE_ACCOUNT_SECRET }}
|