-
Notifications
You must be signed in to change notification settings - Fork 12
33 lines (31 loc) · 1.08 KB
/
create-infra.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
name: Create Ably App
on:
push:
paths:
- '.github/workflows/create-infra.yml'
workflow_dispatch:
jobs:
create_infra:
runs-on: ubuntu-latest
name: Create Infrastructure for FFS
steps:
- name: Create Ably App
id: ablyapp
uses: ably-labs/[email protected]
with:
account-id: '${{ secrets.ABLY_ACCOUNT_ID }}'
control-api-key: '${{ secrets.ABLY_CONTROL_API_KEY }}'
app-name: 'fully-featured-scalable-chat'
create-key: 'true'
key-name: 'all-capabilities-1'
key-capabilities: 'channel-metadata, history, presence, publish, push-admin, push-subscribe, statistics, subscribe'
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CLI_CREDENTIALS }}
- name: Azure CLI script
uses: azure/[email protected]
with:
azcliversion: 2.32.0
inlineScript: |
az staticwebapp appsettings set --name ffschatapp --setting-names "ABLY_API_KEY=${{ steps.ablyapp.outputs.api-key-key }}"