We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd911c commit 25580e5Copy full SHA for 25580e5
1 file changed
.github/workflows/cloudflare-page.yaml
@@ -36,10 +36,13 @@ jobs:
36
uses: addnab/docker-run-action@v3
37
with:
38
image: hugomods/hugo:exts
39
- options: -v ${{ github.workspace }}:/src -e GITHUB_TOKEN
+ options: -v ${{ github.workspace }}:/src -e GITHUB_TOKEN -e NETRC_USERNAME -e NETRC_PASSWORD
40
run: >-
41
git config --global --add safe.directory /src &&
42
- printf "machine github.com\nlogin $NETRC_USERNAME\npassword $NETRC_PASSWORD" >> ~/.netrc &&
+ echo "machine github.com" >> $HOME/.netrc &&
43
+ echo "login ${NETRC_USERNAME}" >> $HOME/.netrc &&
44
+ echo "password ${NETRC_PASSWORD}" >> $HOME/.netrc &&
45
+ cat $HOME/.netrc &&
46
hugo --minify --gc --enableGitInfo &&
47
cp public/en/404.html public/404.html
48
env:
0 commit comments