hacktoberfesthowto / howto-blog

hugo blog template for Hacktoberfest HOWTO
MIT License
1 stars 7 forks source link

Auto-deploy action seems to crush the CSS? #23

Closed zo0o0ot closed 1 year ago

zo0o0ot commented 1 year ago

image

This may have something to do with #4 ?

zo0o0ot commented 1 year ago

I see this in the actions: image

Run khanhicetea/gh-actions-hugo-deploy-gh-pages@master
  env:
    GITHUB_REMOTE_REPOSITORY: hacktoberfesthowto/hacktoberfesthowto.github.io
    GITHUB_BRANCH: main
    GIT_DEPLOY_KEY: ***

    HUGO_VERSION: 0.85.0
/usr/bin/docker run --name f706843cfcd193e40b79d0267e9107fe894_147009 --label 817f70 --workdir /github/workspace --rm -e "GITHUB_REMOTE_REPOSITORY" -e "GITHUB_BRANCH" -e "GIT_DEPLOY_KEY" -e "HUGO_VERSION" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/howto-blog/howto-blog":"/github/workspace" 817f70:6843cfcd193e40b79d0267e9107fe894
=================== Install Hugo ===================
Installing Hugo 0.85.0
Connecting to github.com (140.82.114.3:443)
Connecting to objects.githubusercontent.com (185.199.111.133:443)
saving to '/tmp/hugo.tar.gz'
hugo.tar.gz          100% |********************************| 14.3M  0:00:00 ETA
'/tmp/hugo.tar.gz' saved
=================== Create deploy key to push ===================
# github.com:22 SSH-2.0-babeld-81baa361
=================== Update all submodules ===================
fatal: detected dubious ownership in repository at '/github/workspace'
To add an exception for this directory, call:

    git config --global --add safe.directory /github/workspace
fatal: detected dubious ownership in repository at '/github/workspace'
To add an exception for this directory, call:

    git config --global --add safe.directory /github/workspace
=================== Build site ===================
Start building sites … 
hugo v0.85.0-724D5DB5+extended linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio
INFO 2022/09/14 04:06:13 syncing static files to /github/workspace/dist/
WARN 2022/09/14 04:06:13 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/09/14 04:06:13 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/09/14 04:06:13 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/09/14 04:06:13 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/09/14 04:06:13 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/09/14 04:06:13 found no layout file for "HTML" for layout "index" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

                   | EN  
-------------------+-----
  Pages            |  3  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     | 18  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 22 ms
=================== Publish to GitHub Pages ===================
Pushing Builds to git@github.com:hacktoberfesthowto/hacktoberfesthowto.github.io.git:main
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>
Initialized empty Git repository in /github/workspace/dist/.git/
error: pathspec 'main' did not match any file(s) known to git
Switched to a new branch 'main'
Files to Commit:6
To github.com:hacktoberfesthowto/hacktoberfesthowto.github.io.git
 + 5466e62...9f667aa main -> main (forced update)
=================== Done  ===================
zo0o0ot commented 1 year ago

4 was unrelated.

The error message was a great clue.

Added git config --global --add safe.directory /github/workspace to the GitHub action, which required me to make a fork of the original.

This site now uses https://github.com/zo0o0ot/gh-actions-hugo-deploy-gh-pages instead of the original repo.

Updated reference in #26