Skip to content

WebApp (JS) - Main

WebApp (JS) - Main #29

Workflow file for this run

name: WebApp (JS) - Main
on: workflow_dispatch
jobs:
deploy-to-main:
name: Deploy (Main)
environment: main-webapp
runs-on: ubuntu-latest
steps:
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: "Run azure/CLI@e43928ebbc386700c6bb2f42a97a8de31576cfd2: az storage copy"
uses: azure/CLI@e43928ebbc386700c6bb2f42a97a8de31576cfd2
with:
azcliversion: 2.30.0
inlineScript: |
az storage copy -s https://slpublic.blob.core.windows.net/assets/latest-edge -d https://slpublic.blob.core.windows.net/assets/latest-main
- run: Invoke-RestMethod -Method POST -Uri 'https://sharplab.io/assets/reload' -Authentication Bearer -Token $(ConvertTo-SecureString $env:SHARPLAB_ASSETS_RELOAD_TOKEN -AsPlainText)
shell: pwsh
env:
SHARPLAB_ASSETS_RELOAD_TOKEN: ${{ secrets.SHARPLAB_ASSETS_RELOAD_TOKEN }}