From 4b3d31ede25b7e6f3f76678830b160110c24e0bb Mon Sep 17 00:00:00 2001 From: Christian Schlatter Date: Thu, 6 Jul 2023 11:38:17 +0200 Subject: [PATCH] fix ci --- ci/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/main.go b/ci/main.go index 048e7e8..2145abb 100644 --- a/ci/main.go +++ b/ci/main.go @@ -270,7 +270,8 @@ func (g *GitHubReleaser) releaseDocs(ctx context.Context, version string, dagger WithExec([]string{"git", "remote", "set-url", "origin", "https://schlapzz:$GH_PUSH_TOKEN@github.com/puzzle/goff.git"}). WithExec([]string{"git", "config", "--global", "user.email", "schlatter@puzzle.ch"}). WithExec([]string{"git", "config", "--global", "user.name", "schlapzz"}). - WithExec([]string{"git", "checkout", "gh-pages"}). + WithExec([]string{"git", "fetch"}). + WithExec([]string{"git", "checkout", "origin/gh-pages"}). WithExec([]string{"mkdocs", "build"}). WithExec([]string{"rm", "-rf", "docs"}). WithExec([]string{"mv", "site", "docs"}).