与 Buddy 一起部署你的 Astro 站点
你可以使用 Buddy 部署 Astro 项目,Buddy 是一个 CI/CD 解决方案,可以构建你的站点并将其推送到许多不同的部署目标,包括 FTP 服务器和云托管提供商。
¥You can deploy your Astro project using Buddy, a CI/CD solution that can build your site and push it to many different deploy targets including FTP servers and cloud hosting providers.
如何部署
标题部分 如何部署¥How to deploy
-
Create a new project and connect it with a git repository (GitHub, GitLab, BitBucket, any private Git Repository or you can use Buddy Git Hosting).
-
Add a new pipeline.
-
In the newly created pipeline add a Node.js action.
-
In this action add:
-
Add a deployment action — there are many to choose from, you can browse them in Buddy’s actions catalog. Although their settings can differ, remember to set the Source path to
dist
. -
Press the Run button.