这就是我的行为
# This is a basic workflow to help you get started with Actions
name: CI/CD Akper Bina Insan - Live
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Yarn
run: npm install -g yarn
- name: Build UI - Akper Bina Insan
working-directory: ./ui
run: yarn && yarn build && yarn start
- name: Build Backend Service - Akper Bina Insan
working-directory: ./be
run: yarn && yarn build && yarn prod在它完成第一次运行后,它不会继续第二次运行。即使服务器已经准备好。我等了5分钟,然后停了下来,因为我不想浪费时间。
我怎样才能让它为第二个运行?
发布于 2021-04-26 14:50:52
GitHub actions是用于CI/CD和的工具,而不是用于托管(运行)应用程序的。
在给定的工作流中,先对UI应用程序执行build操作,然后执行run操作。run命令是一个阻塞进程--例如,由于你已经启动了你的UI应用程序,你的工作流将保持阻塞状态。你不应该在工作流中这样做。
使用GitHub操作进行构建和测试,但不用于托管。
https://stackoverflow.com/questions/67233287
复制相似问题