Skip to content

Commit

Permalink
Fix GitHub Pages not deploying automatically
Browse files Browse the repository at this point in the history
Use a personal access token instead of the provided Actions token. See maxheld83/ghpages#1.
  • Loading branch information
sagebind committed Feb 6, 2019
1 parent 754b35c commit 2ef62ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ action "Publish docs" {
uses = "docker://asciidoctor/docker-asciidoctor"
needs = ["Master"]
args = ["sh", "-c", "apk --no-cache add git && make publish-docs"]
secrets = ["GITHUB_TOKEN"]
secrets = ["GITHUB_PAT", "GITHUB_TOKEN"]
}
2 changes: 1 addition & 1 deletion scripts/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -eu

COMMIT_HASH=$(git rev-parse HEAD)
COMMIT_MESSAGE="Deploy $COMMIT_HASH"
ORIGIN="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
ORIGIN="https://${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY}.git"

rm -rf target/docs/.git
touch target/docs/.nojekyll
Expand Down

0 comments on commit 2ef62ca

Please sign in to comment.