提交 9a5cde08 编写于 作者: M Mislav Marohnić
上级 3bb72b95
......@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v1
......
......@@ -5,7 +5,6 @@ publish_documentation() {
local version="$1"
local doc_dir="site"
local doc_branch="gh-pages"
local remote_url="$(git config remote.origin.url)"
git fetch origin "${doc_branch}:${doc_branch}"
git worktree add "$doc_dir" "$doc_branch"
......@@ -23,8 +22,7 @@ publish_documentation() {
GIT_AUTHOR_NAME='Mislav Marohnić' GIT_AUTHOR_EMAIL='mislav@github.com' \
git commit -m "Update documentation for $version"
git push "https://${GITHUB_TOKEN}@${remote_url#https://}" HEAD
git push origin HEAD
popd
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册