Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support: Raw repository is deployed #669

Closed
3 tasks done
mapa17 opened this issue Nov 12, 2021 · 4 comments
Closed
3 tasks done

support: Raw repository is deployed #669

mapa17 opened this issue Nov 12, 2021 · 4 comments
Assignees
Labels

Comments

@mapa17
Copy link

mapa17 commented Nov 12, 2021

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

The deployed paged seems to contain the "raw" repository and not the generated static pages.

Relevant links

Public repository:https://github.com/mapa17/manuelpasieka.com
YAML config:
YAML workflow: https://github.com/mapa17/manuelpasieka.com/blob/78788a0c12208a409e61a47a4a02b777524722f7/.github/workflows/gh-pages.yml

Relevant log output

2021-11-11T23:53:26.0365840Z ##[group]Run peaceiris/actions-gh-pages@v3
2021-11-11T23:53:26.0366343Z with:
2021-11-11T23:53:26.0367931Z   github_token: ***
2021-11-11T23:53:26.0368290Z   publish_dir: ./public
2021-11-11T23:53:26.0368682Z   publish_branch: gh-pages
2021-11-11T23:53:26.0369064Z   allow_empty_commit: false
2021-11-11T23:53:26.0369397Z   keep_files: false
2021-11-11T23:53:26.0369730Z   force_orphan: false
2021-11-11T23:53:26.0370071Z   enable_jekyll: false
2021-11-11T23:53:26.0370432Z   disable_nojekyll: false
2021-11-11T23:53:26.0370800Z   exclude_assets: .github
2021-11-11T23:53:26.0371119Z ##[endgroup]
2021-11-11T23:53:26.1202928Z [INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
2021-11-11T23:53:26.1219803Z ##[group]Dump inputs
2021-11-11T23:53:26.1220512Z [INFO] GithubToken: true
2021-11-11T23:53:26.1221433Z [INFO] PublishBranch: gh-pages
2021-11-11T23:53:26.1222253Z [INFO] PublishDir: ./public
2021-11-11T23:53:26.1222798Z [INFO] DestinationDir: 
2021-11-11T23:53:26.1223400Z [INFO] ExternalRepository: 
2021-11-11T23:53:26.1224035Z [INFO] AllowEmptyCommit: false
2021-11-11T23:53:26.1225077Z [INFO] KeepFiles: false
2021-11-11T23:53:26.1225643Z [INFO] ForceOrphan: false
2021-11-11T23:53:26.1226186Z [INFO] UserName: 
2021-11-11T23:53:26.1226672Z [INFO] UserEmail: 
2021-11-11T23:53:26.1227210Z [INFO] CommitMessage: 
2021-11-11T23:53:26.1227967Z [INFO] FullCommitMessage: 
2021-11-11T23:53:26.1228493Z [INFO] TagName: 
2021-11-11T23:53:26.1229149Z [INFO] TagMessage: 
2021-11-11T23:53:26.1229741Z [INFO] EnableJekyll (DisableNoJekyll): false
2021-11-11T23:53:26.1230516Z [INFO] CNAME: 
2021-11-11T23:53:26.1231045Z [INFO] ExcludeAssets .github
2021-11-11T23:53:26.1231443Z 
2021-11-11T23:53:26.1232602Z ##[endgroup]
2021-11-11T23:53:26.1233896Z ##[group]Setup auth token
2021-11-11T23:53:26.1234661Z [INFO] setup GITHUB_TOKEN
2021-11-11T23:53:26.1238884Z ##[endgroup]
2021-11-11T23:53:26.1240055Z ##[group]Prepare publishing assets
2021-11-11T23:53:26.1241253Z [INFO] ForceOrphan: false
2021-11-11T23:53:26.1297376Z [command]/usr/bin/git clone --depth=1 --single-branch --branch gh-pages ***github.com/mapa17/manuelpasieka.com.git /home/runner/actions_github_pages_1636674806123
2021-11-11T23:53:26.1333579Z Cloning into '/home/runner/actions_github_pages_1636674806123'...
2021-11-11T23:53:26.5735347Z [INFO] clean up /home/runner/actions_github_pages_1636674806123
2021-11-11T23:53:26.5737028Z [INFO] chdir /home/runner/actions_github_pages_1636674806123
2021-11-11T23:53:26.5759887Z [command]/usr/bin/git rm -r --ignore-unmatch *
2021-11-11T23:53:26.5867564Z rm '.nojekyll'
2021-11-11T23:53:26.5868879Z rm '404.html'
2021-11-11T23:53:26.5869820Z rm 'about-hugo/index.html'
2021-11-11T23:53:26.5870686Z rm 'android-chrome-192x192.png'
2021-11-11T23:53:26.5871633Z rm 'android-chrome-512x512.png'
2021-11-11T23:53:26.5872505Z rm 'apple-touch-icon.png'
2021-11-11T23:53:26.5873322Z rm 'browserconfig.xml'
2021-11-11T23:53:26.5875168Z rm 'css/style.min.eac77496566fd7d5768fd650ddb0b2b181ca6a2d7c5fdd6fe6b8ba4bf47e566f.css'
2021-11-11T23:53:26.5876821Z rm 'favicon-16x16.png'
2021-11-11T23:53:26.5877942Z rm 'favicon-32x32.png'
2021-11-11T23:53:26.5878668Z rm 'favicon.ico'
2021-11-11T23:53:26.5879336Z rm 'here.txt'
2021-11-11T23:53:26.5880010Z rm 'img/profile.jpg'
2021-11-11T23:53:26.5880706Z rm 'index.html'
2021-11-11T23:53:26.5881367Z rm 'index.xml'
2021-11-11T23:53:26.5882829Z rm 'js/bundle.min.7d8545daa55d62427355498dd8da13f98ff79a7938ce7d2a5e2ae1ec0de3beb8.js'
2021-11-11T23:53:26.5884316Z rm 'mstile-150x150.png'
2021-11-11T23:53:26.5885421Z rm 'posts/creating-a-new-theme/index.html'
2021-11-11T23:53:26.5886346Z rm 'posts/first-post/index.html'
2021-11-11T23:53:26.5887229Z rm 'posts/goisforlovers/index.html'
2021-11-11T23:53:26.5888464Z rm 'posts/hugoisforlovers/index.html'
2021-11-11T23:53:26.5889239Z rm 'posts/index.html'
2021-11-11T23:53:26.5889949Z rm 'posts/index.xml'
2021-11-11T23:53:26.5890764Z rm 'posts/migrate-from-jekyll/index.html'
2021-11-11T23:53:26.5892525Z rm 'posts/post-with-featured-image/index.html'
2021-11-11T23:53:26.5893550Z rm 'posts/the-figure-shortcode/index.html'
2021-11-11T23:53:26.5894332Z rm 'safari-pinned-tab.svg'
2021-11-11T23:53:26.5895152Z rm 'site.webmanifest'
2021-11-11T23:53:26.5896316Z rm 'sitemap.xml'
2021-11-11T23:53:26.5896875Z rm 'tags/demo/index.html'
2021-11-11T23:53:26.5897425Z rm 'tags/demo/index.xml'
2021-11-11T23:53:26.5898148Z rm 'tags/development/index.html'
2021-11-11T23:53:26.5898752Z rm 'tags/development/index.xml'
2021-11-11T23:53:26.5899280Z rm 'tags/go/index.html'
2021-11-11T23:53:26.5899770Z rm 'tags/go/index.xml'
2021-11-11T23:53:26.5900269Z rm 'tags/golang/index.html'
2021-11-11T23:53:26.5900795Z rm 'tags/golang/index.xml'
2021-11-11T23:53:26.5901296Z rm 'tags/hugo/index.html'
2021-11-11T23:53:26.5901804Z rm 'tags/hugo/index.xml'
2021-11-11T23:53:26.5902319Z rm 'tags/image/index.html'
2021-11-11T23:53:26.5902831Z rm 'tags/image/index.xml'
2021-11-11T23:53:26.5903328Z rm 'tags/index.html'
2021-11-11T23:53:26.5903791Z rm 'tags/index.xml'
2021-11-11T23:53:26.5904330Z rm 'tags/templates/index.html'
2021-11-11T23:53:26.5905286Z rm 'tags/templates/index.xml'
2021-11-11T23:53:26.5906132Z rm 'tags/themes/index.html'
2021-11-11T23:53:26.5906704Z rm 'tags/themes/index.xml'
2021-11-11T23:53:26.5907218Z [INFO] chdir /home/runner/actions_github_pages_1636674806123
2021-11-11T23:53:26.5908086Z [INFO] prepare publishing assets
2021-11-11T23:53:26.5908853Z [INFO] copy /home/runner/work/manuelpasieka.com/manuelpasieka.com/public to /home/runner/actions_github_pages_1636674806123
2021-11-11T23:53:26.6077226Z cp: no such file or directory: /home/runner/work/manuelpasieka.com/manuelpasieka.com/public/.*
2021-11-11T23:53:26.6080222Z [INFO] delete excluded assets
2021-11-11T23:53:26.6118812Z rm: no paths given
2021-11-11T23:53:26.6120908Z [INFO] Created /home/runner/actions_github_pages_1636674806123/.nojekyll
2021-11-11T23:53:26.6121914Z ##[endgroup]
2021-11-11T23:53:26.6123164Z ##[group]Setup Git config
2021-11-11T23:53:26.6142183Z [command]/usr/bin/git remote rm origin
2021-11-11T23:53:26.6206757Z [command]/usr/bin/git remote add origin ***github.com/mapa17/manuelpasieka.com.git
2021-11-11T23:53:26.6274789Z [command]/usr/bin/git add --all
2021-11-11T23:53:26.6397407Z [command]/usr/bin/git config user.name mapa17
2021-11-11T23:53:26.6450044Z [command]/usr/bin/git config user.email [email protected]
2021-11-11T23:53:26.6482396Z ##[endgroup]
2021-11-11T23:53:26.6484336Z ##[group]Create a commit
2021-11-11T23:53:26.6505513Z [command]/usr/bin/git commit -m deploy: 78788a0c12208a409e61a47a4a02b777524722f7
2021-11-11T23:53:26.6575060Z On branch gh-pages
2021-11-11T23:53:26.6577135Z nothing to commit, working tree clean
2021-11-11T23:53:26.6581828Z [INFO] skip commit
2021-11-11T23:53:26.6586017Z ##[endgroup]
2021-11-11T23:53:26.6588260Z ##[group]Push the commit or tag
2021-11-11T23:53:26.6608190Z [command]/usr/bin/git push origin gh-pages
2021-11-11T23:53:26.9628608Z Everything up-to-date
2021-11-11T23:53:26.9657924Z ##[endgroup]
2021-11-11T23:53:26.9658368Z [INFO] Action successfully completed
2021-11-11T23:53:26.9814130Z Post job cleanup.
2021-11-11T23:53:27.1160438Z [command]/usr/bin/git version
2021-11-11T23:53:27.1209217Z git version 2.33.1
2021-11-11T23:53:27.1246904Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-11-11T23:53:27.1283503Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-11-11T23:53:27.1532179Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-11-11T23:53:27.1557086Z http.https://github.com/.extraheader
2021-11-11T23:53:27.1566753Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2021-11-11T23:53:27.1604937Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-11-11T23:53:27.1871021Z Cleaning up orphan processes

Additional context.

I am very sorry if there is essential information missing. I already spend hours on this without any progress.

In the github action logs, what confuses me is the failing of a copy statement hat should read from the public folder containing the compiled page.

2021-11-11T23:53:26.5908853Z [INFO] copy /home/runner/work/manuelpasieka.com/manuelpasieka.com/public to /home/runner/actions_github_pages_1636674806123
2021-11-11T23:53:26.6077226Z cp: no such file or directory: /home/runner/work/manuelpasieka.com/manuelpasieka.com/public/.*
@mapa17 mapa17 added the support User support label Nov 12, 2021
@peaceiris
Copy link
Owner

cp: no such file or directory

It just says that there are no dotfiles to deploy. I will improve those unkind log messages in #300.

Your deployment looks good except that.

@peaceiris
Copy link
Owner

Your public folder in the master branch should be ignored from Git control. Please add it .gitignore

@mapa17
Copy link
Author

mapa17 commented Nov 28, 2021

The github pages has been configured incorrectly, using the wrong branch for deploying the web page.
It was set to master instead of gh-page.

I was not aware that github actions read from master, build the static page and push the static page to gh-pages where it is read for 'deployment'.

@github-actions
Copy link
Contributor

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants