部署到Ionos失败
我想使用github工作流程将我的项目部署到Ionos上。
这是我的deploy-now.yaml
;
name: Deploy Now
on:
- push
- workflow_dispatch
jobs:
deploy-now:
runs-on: ubuntu-latest
steps:
- name: Fetch project data
uses: ionos-deploy-now/retrieve-project-info-action@v1
id: project
with:
api-key: ${{ secrets.IONOS_API_KEY }}
project: ${{ secrets.IONOS_PROJECT_ID }}
service-host: api-eu.ionos.space
- name: checkout
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup Node.js 14.x
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Prepare project environment
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
run: |
npm install --global yarn
yarn install --frozen-lockfile
- name: Build project
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
run: yarn build
env:
mint.hopegalaxy: ${{ steps.project.outputs.site-url }}
app: true
- name: Deploy build
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: ionos-deploy-now/deploy-to-ionos-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
bootstrap-deploy: ${{ steps.project.outputs.bootstrap-deploy }}
branch-id: ${{ steps.project.outputs.branch-id }}
dist-folder: build
project: ${{ secrets.IONOS_PROJECT_ID }}
remote-host: ${{ steps.project.outputs.remote-host }}
service-host: api-eu.ionos.space
storage-quota: ${{ steps.project.outputs.storage-quota }}
但是,当我将所做的工作推向GitHub时,我遇到了此错误发布目录“构建”并不存在project
您可以从图像中看到,建筑物已成功完成。
我不确定为什么会发生这个问题。
任何评论都会有所帮助。
I want to deploy my project on Github to IONOS using Github workflow.
Here is my deploy-now.yaml
;
name: Deploy Now
on:
- push
- workflow_dispatch
jobs:
deploy-now:
runs-on: ubuntu-latest
steps:
- name: Fetch project data
uses: ionos-deploy-now/retrieve-project-info-action@v1
id: project
with:
api-key: ${{ secrets.IONOS_API_KEY }}
project: ${{ secrets.IONOS_PROJECT_ID }}
service-host: api-eu.ionos.space
- name: checkout
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup Node.js 14.x
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Prepare project environment
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
run: |
npm install --global yarn
yarn install --frozen-lockfile
- name: Build project
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
run: yarn build
env:
mint.hopegalaxy: ${{ steps.project.outputs.site-url }}
app: true
- name: Deploy build
if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
uses: ionos-deploy-now/deploy-to-ionos-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
bootstrap-deploy: ${{ steps.project.outputs.bootstrap-deploy }}
branch-id: ${{ steps.project.outputs.branch-id }}
dist-folder: build
project: ${{ secrets.IONOS_PROJECT_ID }}
remote-host: ${{ steps.project.outputs.remote-host }}
service-host: api-eu.ionos.space
storage-quota: ${{ steps.project.outputs.storage-quota }}
But when I push what I have done to Github, I met this error Publish directory 'build' does not exist in project
As you can see from the image, building has been successfully done.
I am not sure why this issue happens.
Any comment would be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论