-
Notifications
You must be signed in to change notification settings - Fork 72
42 lines (36 loc) · 1.36 KB
/
azure-static-web-apps-deploy.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
name: Azure Static Web Apps CI/CD
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
build_and_deploy_job:
permissions:
contents: read # for actions/checkout to fetch code
if: github.repository == 'trimble-oss/modus-web-components'
runs-on: ubuntu-22.04
name: Build and Deploy Job
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: cd stencil-workspace && npm run full
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
skip_deploy_on_missing_secrets: true
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ICY_GROUND_0374A1310 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments)
action: 'upload'
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
skip_app_build: 'true'
app_location: '/stencil-workspace/storybook/dist/' # App source code path
api_location: '' # Api source code path - optional
output_location: '/' # Built app content directory - optional