-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 983 Bytes
/
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
name: Build & Deploy
on:
- push
- pull_request
jobs:
build_deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: pipenv
- name: Install Python dependencies
run: |
curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python3
pipenv install
- name: Build
run: pipenv run mkdocs build -v
- name: Deploy to Azure
if: ${{ github.event_name == 'push' }}
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: site
skip_app_build: true
config_file_location: .
- name: Submit Sitemap
uses: atymic/sitemap-ping-action@master
with:
sitemap-url: https://cpu.ruc.men.ci/sitemap.xml