Skip to content

Commit e8a90e3

Browse files
committed
add azure static web deploy as bonus project
1 parent 5b354a1 commit e8a90e3

73 files changed

Lines changed: 10140 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PUBLIC_ORGANIZATION=lemoncode
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PUBLIC_ORGANIZATION=facebook
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CD Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
cd:
10+
environment:
11+
name: 'My Static Web App'
12+
# Replace <YOUR_WEB_STATIC_URL> with the url of your static web app
13+
url: <YOUR_WEB_STATIC_URL>
14+
runs-on: ubuntu-latest
15+
name: Build and Deploy Job
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Install
21+
run: npm ci
22+
23+
- name: Build
24+
run: npm run build
25+
26+
- name: Deploy
27+
uses: Azure/static-web-apps-deploy@v1
28+
with:
29+
# Replace <YOUR_AUTO_GENERATED_TOKEN> with the name of your secret token
30+
azure_static_web_apps_api_token: ${{ secrets.<YOUR_AUTO_GENERATED_TOKEN> }}
31+
repo_token: ${{ secrets.GITHUB_TOKEN }}
32+
action: "upload"
33+
app_location: "/dist"
34+
ski_app_build: true
35+
ski_api_build: true
36+
env:
37+
NODE_VERSION: 20.17.0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
dist
3+
coverage
4+
.awcache
5+
test-report.*
6+
junit.xml
7+
*.log
8+
*.orig
9+
.awcache
10+
.env
11+
server/public
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"endOfLine": "lf"
5+
}

0 commit comments

Comments
 (0)