release_actions.yml

 1on:
 2  release:
 3    types: [published]
 4
 5jobs:
 6  discord_release:
 7    runs-on: ubuntu-latest
 8    steps:
 9    - name: Discord Webhook Action
10      uses: tsickert/discord-webhook@v5.3.0
11      with:
12        webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
13        content: |
14          📣 Zed ${{ github.event.release.tag_name }} was just released!
15          
16          Restart your Zed or head to https://zed.dev/releases to grab it.
17        
18          ```md
19          ### Changelog
20          
21          ${{ github.event.release.body }}
22          ```
23  amplitude_release:
24    runs-on: ubuntu-latest
25    steps:
26      - uses: actions/checkout@v3
27      - uses: actions/setup-python@v4
28        with:
29          python-version: "3.10.5"
30          architecture: "x64"
31          cache: "pip"
32      - run: pip install -r script/amplitude_release/requirements.txt
33      - run: python script/amplitude_release/main.py ${{ github.event.release.tag_name }} ${{ secrets.ZED_AMPLITUDE_API_KEY }} ${{ secrets.ZED_AMPLITUDE_SECRET_KEY }}