-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 1.01 KB
/
Copy pathdeploy-dev.yml
File metadata and controls
35 lines (31 loc) · 1.01 KB
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
name: Frontend DEV Deploy
on:
push:
branches:
- dev
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy DEV
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
submodules: true
lfs: false
- name: Generate build info env
run: |
echo "REACT_APP_BUILD_SHA=${GITHUB_SHA::7}" > .env
echo "REACT_APP_BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> .env
echo "REACT_APP_ENVIRONMENT=DEV" >> .env
cat .env
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_ISLAND_094FE5703 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "/"
api_location: ""
output_location: "dist"
app_build_command: "npm run build"