- 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 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
output_location: "site" # Built app content directory - optional
###### End of Repository/Build Configurations ######
1条答案
按热度按时间6uxekuva1#
您可以按照其中一个静态站点生成器教程(例如hugo)进行操作。
有两个主要的步骤实际上是你的构建管道的一部分,像GitHub操作或ADO管道
1.生成静态资产
对于MkDocs,这是通过运行
mkdocs builds
来完成的1.部署到Azure
为此,根据你的构建解决方案,使用合适的插件进行部署。