【发布时间】:2020-04-17 08:58:13
【问题描述】:
我有一个需要使用 GitHub Actions 部署到 Elastic Beanstalk 的 Angular 应用程序。我正在关注此guideline 以通过应用程序部署到 ELB。
我遇到了一个错误:
未提供文件名,部署现有版本 1
- [错误]部署失败:TypeError [ERR_INVALID_ARG_TYPE]:“数据”参数必须是类型字符串、缓冲区、TypedArray 或 数据视图。接收类型未定义
- [错误]节点运行失败,退出代码为 2
下面是我的main.yml文件
name: CI
on:
push:
branches:
- dry-run-actions
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v1
# I'm removing the intermediate steps to make this code look shorter and these steps are running correctly.
# In these steps I'm "Caching node_module", "npm install" and "npm run build"
- name: Cache node modules
...
- name: Node ${{ matrix.node-version }}
...
- name: Do NPM install
...
- name: Building application
...
- name: Generate deployment package
run: zip -r deploy.zip ./dist/*
- name: Beanstalk Deploy for Climber Mentee App
uses: einaregilsson/beanstalk-deploy@v3
with:
aws_access_key: ${{secrets.AWS_ACCESS_KEY}}
aws_secret_key: ${{secrets.AWS_SECRET_KEY}}
aws_region: "ap-south-1"
application_name: "app-name"
environment_name: "aws-env-name"
version_label: 1
deployment_package: deploy.zip
- name: Deployed the test app
run: echo Yeaahhhhh
请告诉我,我做错了什么或者我错过了什么?
【问题讨论】:
标签: github-actions