Skip to content

Commit

Permalink
Merge pull request #100 from Azure/users/v-pnizetic/azure-deploy-work…
Browse files Browse the repository at this point in the history
…flow

Add azure deployment
  • Loading branch information
nizetic authored Nov 3, 2023
2 parents ff82e51 + 724e2d4 commit ddbe78d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 22 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/azure-static-web-apps-AZ.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: "upload"
app_location: "/" # App source code path relative to repository root
app_build_command: "npm run build:test"
output_location: "build" # Built app content directory, relative to app_location - optional
62 changes: 40 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@zip.js/zip.js": "^2.7.9",
"azure-maps-control": "^2.2.7",
"azure-maps-indoor": "^0.2.2",
"cross-env": "^7.0.3",
"file-saver": "^2.0.5",
"i18next": "^21.9.2",
"i18next-browser-languagedetector": "^6.1.5",
Expand Down Expand Up @@ -58,6 +59,7 @@
"start": "react-scripts start",
"build:stats": "react-scripts build --stats",
"build": "react-scripts build",
"build:test": "cross-env PUBLIC_URL=. react-scripts build",
"cycle:deps": "node madge.js",
"test:ci": "react-scripts test --ci --reporters=default --reporters=jest-junit --watchAll=false",
"test": "react-scripts test",
Expand Down

0 comments on commit ddbe78d

Please sign in to comment.