Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 22, 2023
1 parent 5dd911c commit 4ca7008
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cloudflare-page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: hugomods/hugo:exts
options: -v ${{ github.workspace }}:/src -e GITHUB_TOKEN
options: -v ${{ github.workspace }}:/src -e GITHUB_TOKEN -e NETRC_USERNAME -e NETRC_PASSWORD
run: >-
git config --global --add safe.directory /src &&
printf "machine github.com\nlogin $NETRC_USERNAME\npassword $NETRC_PASSWORD" >> ~/.netrc &&
echo "machine github.com" >> $HOME/.netrc &&
echo "login ${NETRC_USERNAME}" >> $HOME/.netrc &&
echo "password ${NETRC_PASSWORD}" >> $HOME/.netrc &&
hugo --minify --gc --enableGitInfo &&
cp public/en/404.html public/404.html
env:
Expand Down

0 comments on commit 4ca7008

Please sign in to comment.