-
Notifications
You must be signed in to change notification settings - Fork 120
54 lines (46 loc) · 1.25 KB
/
azure-deploy.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
name: azure-deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Fetch docs
uses: actions/checkout@v3
with:
repository: "MaaAssistantArknights/MaaAssistantArknights"
sparse-checkout: "docs"
path: "temp"
ref: "master"
fetch-depth: "1"
- name: Move and cleanup docs
run: |
mv ./temp/docs ./apps
rm -r ./temp
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Deploy
id: deploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_WAVE_001CBA500 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
production_branch: "main"
app_location: "dist"
api_location: ""
skip_app_build: true
skip_api_build: true