我正在尝试将我的 angular-meteor 项目上传'ng build'
到 S3 Bucket。
这是我的.yml
文件
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup meteor
uses: meteorengineer/setup-meteor@v1
with:
meteor-release: '1.8.1'
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: NG build Angular
run: ng build --prod
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --delete
env:
AWS_S3_BUCKET: ${{ secrets.DEV_AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: 'browser'
运行此程序后,我将收到该NG build Angular
部分的此错误消息
而不是运行, 我ng build --prod
也尝试运行ng build — prod — aot
,但我仍然收到相同的错误消息。ng build -- --prod
npm run build -- --prod
有谁知道如何解决这个问题?