-
Notifications
You must be signed in to change notification settings - Fork 39
43 lines (42 loc) · 1.22 KB
/
update-extension-store.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Update Extention Store
on:
push:
paths:
- "extensions.json"
branches:
- main
workflow_dispatch:
jobs:
regenerate:
name: Update Extension Store
runs-on: ubuntu-latest
steps:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v3
- name: Install Packages
run: yarn --cwd ./scripts install --frozen-lockfile
- name: Run Cloudflare Deployment
run: yarn --cwd ./scripts run deploy
env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CF_WEBHOOK: ${{ secrets.EXTENSION_STORE_DEPLOY_WEBHOOK }}
notify:
name: Trigger Discord Webhook
runs-on: ubuntu-latest
needs: regenerate
steps:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v3
- name: Install Packages
run: yarn --cwd ./scripts install --frozen-lockfile
- name: Notify Discord Extensions Announcements Channel
run: yarn --cwd ./scripts run trigger
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}