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
|
|
|
|
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!
|
2022-10-06 04:22:53 +03:00
|
|
|
|
|
|
|
Restart your Zed or head to https://zed.dev/releases to grab it.
|
|
|
|
|
|
|
|
```md
|
|
|
|
### Changelog
|
|
|
|
|
|
|
|
${{ github.event.release.body }}
|
2022-10-12 01:25:36 +03:00
|
|
|
```
|
|
|
|
amplitude_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/amplitude_release/requirements.txt
|
|
|
|
- run: python script/amplitude_release/main.py ${{ github.event.release.tag_name }} ${{ secrets.ZED_AMPLITUDE_API_KEY }} ${{ secrets.ZED_AMPLITUDE_SECRET_KEY }}
|