Skip to content

release website

release website #162

Workflow file for this run

name: release website
on:
workflow_dispatch:
defaults:
run:
working-directory: next
jobs:
zh-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: install
run: pip install -r requirements.txt
- name: build
run: make -e SPHINXOPTS="-D language='zh_CN'" html
- uses: aliyun/setup-aliyun-cli-action@v1
- name: upload
run: |
aliyun configure set --profile default --mode AK --access-key-id ${{secrets.ALIBABA_CLOUD_ACCESS_KEY_ID}} --access-key-secret ${{secrets.ALIBABA_CLOUD_ACCESS_KEY_SECRET}} --region ${{secrets.ALIBABA_REGION}}
aliyun oss sync ./_build/html/ ${{secrets.ALIYUN_OSS_BUCKET}} --force --delete
aliyun cdn RefreshObjectCaches --ObjectPath https://docs.moonbitlang.cn/ --ObjectType Directory