angular / angular/angularfire

Github Action for deploying Angular App to Firebase - No files were found with the provided path: project_name/dist/

未关闭
#3,270 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
22 小时 28 分钟
30 天内合并 PR
6

描述

We are trying to auto-deploy our angular app using GitHub actions on firebase hosting but we are facing an error on the build step for our app showing that An unhandled exception occurred: ENOENT: no such file or directory, stat '/home/runner/work/...../dist'

on GitHub actions, Getting the below error:
```
Run npm run build

> ngx-admin@0.1.0 build
> ng build

Warning: Support was requested for IE 11 in the project's browserslist configuration. IE 11 support is deprecated since Angular v12.
For more information, see https://angular.io/guide/browser-support
- Generating browser application bundles (phase: setup)...
An unhandled exception occurred: ENOENT: no such file or directory, stat '/home/runner/work/project_name/project_name/dist'
See "/tmp/ng-gy4uE4/angular-errors.log" for further details.
Error: Process completed with exit code 127.
```
Please find our GitHub actions .yml file code below:
```
name: Auto Release

on:
push:
branches:
- test_release_branch

jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Initialize Node
uses: actions/setup-node@master
- name: Install Dependencies
run: npm install
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist/
- name: Build
run: npm run build
- name: Deploy
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:site-name
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
```
I can install, build, and deploy manually from my console just fine. I thought this error might have something to do with my dist directory's location on git, Any thoughts on what this might be?

贡献指南

打开贡献指南

调研方向

从 issue 中的 GitHub Actions YAML 开始,追踪安装、上传 artifact、构建和部署步骤的顺序。比较 Angular 报告的构建输出路径与 workflow 和 Firebase 部署所使用的路径。当 workflow 生成预期的分发文件并成功部署这些文件时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, firebase, github-actions, typescript
领域
build-system, cloud, devops
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。