在你项目仓库.github/workflows目录下创建一个.yml文件,举例:vuepress-deploy.yml。 name: Build and Deploy on: [push] jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@master - name: vuepress-deploy uses: jenkey2011/vuepress-deploy@master env: ACCES...
# @see https://github.com/crazy-max/ghaction-github-pages-name:Deploy to GitHub Pagesuses:crazy-max/ghaction-github-pages@v4with:# 部署到 gh-pages 分支target_branch:gh-pages # 部署目录为 VuePress 的默认输出目录build_dir:docs/.vuepress/distenv:# @see https://docs.github.com/cn/actions/...
"deploy": "bash deploy.sh" }, 我还试了一下,把node退回到16版本,直接从根本上解决这个包不兼容的问题。 新建一个GitHub Action 这里只需要保持和deploy.sh中push的分支一样就好。其余默认,点击提交。 然后返回settings的pages,点击https://jinglisen.github.io/KelsenJing/就可以访问到了。 页面展示就是这样...
git commit -m 'deploy' # 如果发布到 https://<USERNAME>.github.io # git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master # 如果发布到 https://<USERNAME>.github.io/<REPO> # git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages cd - Travis CI langua...
ATOB:master:deploy-to-other-repo-master.yml ATOB:custom_branch:deploy-to-other-repo-custom_branch.yml Here we can see: The action:https://github.com/jenkey2011/vuepress-deploy-demo/actions ATOA:gh_pages:https://github.com/jenkey2011/vuepress-deploy-demo/tree/gh_pages ...
git push -f git@github.com:isunbeam/Blogs.git master:blogscd-# 最后发布的时候执行 bash deploy.sh (2) 注意 git push 的时候,分支名一定要和GitHub上新建的分支名一样。 (3) 执行 bash deploy.sh 。执行完成,到GitHub的仓库里,切换到setting,然后拉到GitHub Pages 这时候已经发布了,但是打开链接还是40...
创建Github仓库 创建Github仓库 在Github官网上创建一个新的仓库(我仓库的名字叫VuePress-GithubPages-TravisCI) SSH密钥链接Github 生成SSH密钥 $ssh-keygenGenerating public/private rsa key pair.#输入准备存放密钥的位置,公钥和私钥放在同一个文件夹Enter file in which to save the key (/home/tsanfer/.ssh/id...
git commit -m'deploy'#如果发布到 https://<USERNAME>.github.io/<REPO>git push -f git@github.com:mqyqingfeng/learn-typescript.git master:gh-pagescd- 然后命令行切换到vuepress-starter目录下,执行sh deploy.sh,就会开始构建,然后提交到远程仓库,注意这里提交到了gh-pages分支,我们查看下对应仓库分支的代...
"deploy": "bash deploy.sh" }, 新建一个GitHub Action 这里只需要保持和deploy.sh中push的分支一样就好。其余默认,点击提交。 然后返回settings的pages,点击https://jinglisen.github.io/KelsenJing/就可以访问到了。 页面展示就是这样子的 7.2 自定义域名访问 ...
Press ^C at any time to quit. package name: (vuepress-starter) Sorry, name cannot contain leading or trailing spaces and name can only contain URL-friendly characters. package name: (vuepress-starter) version: (1.0.0) description: entry point: (index.js) ...