我正在为我的一个代码仓库使用 Github Actions,下面是我的 workflow.ylm 文件:
name: Minify source files
on: [push]
jobs:
read:
runs-on: ubuntu-18.04
steps:
- name: Copy files
run: cp src/Javascript/syntax.js out
- name: Copy files
run: cp src/CSS/syntax.css out
- name: Checkout
uses: actions/checkout@v2
- name: minisauras
uses: TeamTigers/minisauras@v2.0.0
env:
GITHUB_TOKEN: ${{ secrets.MINIFIER }}
id: dir
with:
directory: 'out/'
该操作旨在从文件夹'src/Javascript'和'src/CSS'中复制名为“syntax.js”和“syntax.css”的文件。运行该操作时,我收到以下错误信息:
cp: cannot stat 'src/Javascript/syntax.js': No such file or directory
这是我的项目结构:
Repository
├── .github/workflows
├── main.yml
├── src
├── CSS
├── syntax.css
├── Javascript
├── syntax.js