【发布时间】:2021-04-13 00:42:46
【问题描述】:
我在public/scripts 文件夹中有这个脚本createmap.sh。我需要在主部署上运行它
yaml文件中的代码是
name: create-map
on: push
run: .public/script.sh
runs-on: ubuntu-latest
shell: bash
这是一个简单的脚本,用于创建站点地图并 ping google
# yarn sitemap
$ cd public
$ rm -rf sitemap
$ mkdir sitemap
$ cd ..
$ cd scripts
$ node ./sitemap-posts.js
$ node ./compress-map.js
$ node ./create-one-map.js
$ curl http://google.com/ping?sitemap=https://website.com/sitemap.xml
我的文件夹结构是rootdirectory/scripts 和rootdirectory/public
当我部署时,脚本没有运行,我不知道问题出在哪里
【问题讨论】:
-
控制台有错误吗?如果是,则将其包含在帖子中,并使用
ls -l向我们展示目录脚本和公开的内容
标签: bash github-actions