chabad360 / hugo-gh-pages

🚀 Build and Publish Your Hugo Site to GitHub Pages 🚀
MIT License
43 stars 11 forks source link

Committing and pushing don't happen, no errors #5

Closed Riateche closed 4 years ago

Riateche commented 4 years ago

Log:

2020-03-19T01:02:47.1050737Z ##[group]Run chabad360/hugo-gh-pages@v1.1
2020-03-19T01:02:47.1050904Z with:
2020-03-19T01:02:47.1051467Z   githubToken: ***
2020-03-19T01:02:47.1051574Z   branch: master
2020-03-19T01:02:47.1051688Z   hugoVersion: extended_0.66.0
2020-03-19T01:02:47.1051807Z ##[endgroup]
2020-03-19T01:02:47.1078725Z ##[command]/usr/bin/docker run --name chabad360hugo_fea6ed --label e87b52 --workdir /github/workspace --rm -e INPUT_GITHUBTOKEN -e INPUT_BRANCH -e INPUT_HUGOVERSION -e INPUT_CNAME -e INPUT_REPO -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -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 --entrypoint "/entrypoint.sh" -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/rust-qt.github.io/rust-qt.github.io":"/github/workspace" chabad360/hugo  "--gc" "--minify" "--cleanDestinationDir"
2020-03-19T01:02:52.4691982Z 
2020-03-19T01:02:52.4693554Z Downloading Hugo version extended_0.66.0.
2020-03-19T01:02:52.4952548Z Connecting to github.com (140.82.112.3:443)
2020-03-19T01:02:52.6561801Z Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.251.156:443)
2020-03-19T01:02:52.7663579Z saving to 'hugo_extended_0.66.0_Linux-64bit.tar.gz'
2020-03-19T01:02:52.8494421Z hugo_extended_0.66.0  28% |*********                       | 3905k  0:00:02 ETA
2020-03-19T01:02:52.9010640Z hugo_extended_0.66.0 100% |********************************| 13.5M  0:00:00 ETA
2020-03-19T01:02:52.9011542Z 'hugo_extended_0.66.0_Linux-64bit.tar.gz' saved
2020-03-19T01:02:52.9029719Z LICENSE
2020-03-19T01:02:53.3797252Z README.md
2020-03-19T01:02:53.3797495Z hugo
2020-03-19T01:02:53.4300156Z 
2020-03-19T01:02:53.4301264Z Versions:
2020-03-19T01:02:53.4527102Z Hugo: Hugo Static Site Generator v0.66.0-78C3C78F/extended linux/amd64 BuildDate: 2020-03-03T15:28:32Z
2020-03-19T01:02:53.6152657Z Pygments: Pygments version 2.6.1, (c) 2006-2019 by Georg Brandl.
2020-03-19T01:02:53.8671091Z Asciidoctor: Asciidoctor 2.0.10 [https://asciidoctor.org]
2020-03-19T01:02:53.8671630Z Runtime Environment (ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux-musl]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
2020-03-19T01:02:54.2382506Z PostCSS: 
2020-03-19T01:02:54.2382692Z                                       /|\
2020-03-19T01:02:54.2382864Z                                     //   //
2020-03-19T01:02:54.2383045Z                                   //       //
2020-03-19T01:02:54.2383181Z                                 //___*___*___//
2020-03-19T01:02:54.2383511Z                               //--*---------*--//
2020-03-19T01:02:54.2383647Z                             /|| *             * ||/
2020-03-19T01:02:54.2383784Z                           // ||*    v7.1.0     *|| //
2020-03-19T01:02:54.2383929Z                         //   || *             * ||   //
2020-03-19T01:02:54.2384074Z                       //_____||___*_________*___||_____//
2020-03-19T01:02:54.2384163Z 
2020-03-19T01:02:54.2467374Z Pandoc: pandoc 2.9.1.1
2020-03-19T01:02:54.2467695Z Compiled with pandoc-types 1.20, texmath 0.12, skylighting 0.8.3
2020-03-19T01:02:54.2467841Z Default user data directory: /github/home/.local/share/pandoc or /github/home/.pandoc
2020-03-19T01:02:54.2468110Z Copyright (C) 2006-2019 John MacFarlane
2020-03-19T01:02:54.2468279Z Web:  https://pandoc.org
2020-03-19T01:02:54.2468427Z This is free software; see the source for copying conditions.
2020-03-19T01:02:54.2468555Z There is no warranty, not even for merchantability or fitness
2020-03-19T01:02:54.2468672Z for a particular purpose.
2020-03-19T01:02:54.2562116Z 
2020-03-19T01:02:54.2562913Z Generating Site  at commit 16aa6ad4496de5529132c1a6f341b3062db08117.
2020-03-19T01:02:54.3561941Z Building sites … 
2020-03-19T01:02:54.3562171Z                    | EN  
2020-03-19T01:02:54.3562451Z -------------------+-----
2020-03-19T01:02:54.3562578Z   Pages            | 24  
2020-03-19T01:02:54.3562702Z   Paginator pages  |  0  
2020-03-19T01:02:54.3562968Z   Non-page files   |  0  
2020-03-19T01:02:54.3563092Z   Static files     |  6  
2020-03-19T01:02:54.3563214Z   Processed images |  0  
2020-03-19T01:02:54.3563333Z   Aliases          |  1  
2020-03-19T01:02:54.3563452Z   Sitemaps         |  1  
2020-03-19T01:02:54.3563572Z   Cleaned          |  0  
2020-03-19T01:02:54.3563791Z 
2020-03-19T01:02:54.3563909Z Total in 75 ms
2020-03-19T01:02:55.1596892Z Post job cleanup.

https://github.com/rust-qt/rust-qt.github.io/runs/518088594?check_suite_focus=true

Config:

name: Publish Site

on:
  push:
    branches:
      - source

jobs:
  build-deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Repo
        uses: actions/checkout@master
        with:
          submodules: true
      - name: Publish Site
        uses: chabad360/hugo-gh-pages@v1.1
        with:
          githubToken: ${{ secrets.PERSONAL_TOKEN }}
          branch: master
          hugoVersion: extended_0.66.0

https://github.com/rust-qt/rust-qt.github.io/blob/source/.github/workflows/main.yml

It seems that the script just ends after generating the site. No error is reported. No changes are pushed to the master branch.

Riateche commented 4 years ago

It seems to work when I specify the latest commit (chabad360/hugo-gh-pages@bfd5d2fa3abefe9ac3837c6aa9b685122d42feda).

yanuehara commented 4 years ago

Same thing happening to me. Using uses:chabad360/hugo-gh-pages@v1.1 it seems that the action stops without deploying. But using uses: chabad360/hugo-gh-pages@bfd5d2fa3abefe9ac3837c6aa9b685122d42feda, that is the current master, it works.

Log:

2020-03-19T12:35:56.8888873Z ##[group]Run chabad360/hugo-gh-pages@v1.1
2020-03-19T12:35:56.8889017Z with:
2020-03-19T12:35:56.8889645Z   githubToken: ***
2020-03-19T12:35:56.8889767Z   repo: yanuehara/yanuehara.github.io
2020-03-19T12:35:56.8889890Z   hugoVersion: 0.54.0
2020-03-19T12:35:56.8890008Z   branch: gh-pages
2020-03-19T12:35:56.8890121Z ##[endgroup]
2020-03-19T12:35:56.8914953Z ##[command]/usr/bin/docker run --name chabad360hugo_91f9fb --label e87b52 --workdir /github/workspace --rm -e INPUT_GITHUBTOKEN -e INPUT_REPO -e INPUT_HUGOVERSION -e INPUT_CNAME -e INPUT_BRANCH -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -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 --entrypoint "/entrypoint.sh" -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/hugo-academic/hugo-academic":"/github/workspace" chabad360/hugo  "--gc" "--minify" "--cleanDestinationDir"
2020-03-19T12:36:02.0723080Z 
2020-03-19T12:36:02.0728685Z Downloading Hugo version 0.54.0.
2020-03-19T12:36:02.0797441Z Connecting to github.com (140.82.114.4:443)
2020-03-19T12:36:02.2770561Z Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.187.19:443)
2020-03-19T12:36:02.4216573Z saving to 'hugo_0.54.0_Linux-64bit.tar.gz'
2020-03-19T12:36:02.4988618Z hugo_0.54.0_Linux-64 100% |********************************| 7585k  0:00:00 ETA
2020-03-19T12:36:02.4989021Z 'hugo_0.54.0_Linux-64bit.tar.gz' saved
2020-03-19T12:36:02.5004521Z LICENSE
2020-03-19T12:36:02.7487983Z README.md
2020-03-19T12:36:02.7496536Z hugo
2020-03-19T12:36:02.7769164Z 
2020-03-19T12:36:02.7770826Z Versions:
2020-03-19T12:36:02.7937559Z Hugo: Hugo Static Site Generator v0.54.0-B1A82C61 linux/amd64 BuildDate: 2019-02-01T09:40:34Z
2020-03-19T12:36:02.9466136Z Pygments: Pygments version 2.6.1, (c) 2006-2019 by Georg Brandl.
2020-03-19T12:36:03.1550541Z Asciidoctor: Asciidoctor 2.0.10 [https://asciidoctor.org]
2020-03-19T12:36:03.1551525Z Runtime Environment (ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux-musl]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
2020-03-19T12:36:03.4828441Z PostCSS: 
2020-03-19T12:36:03.4828793Z                                       /|\
2020-03-19T12:36:03.4828989Z                                     //   //
2020-03-19T12:36:03.4829175Z                                   //       //
2020-03-19T12:36:03.4829436Z                                 //___*___*___//
2020-03-19T12:36:03.4830091Z                               //--*---------*--//
2020-03-19T12:36:03.4830337Z                             /|| *             * ||/
2020-03-19T12:36:03.4830564Z                           // ||*    v7.1.0     *|| //
2020-03-19T12:36:03.4830756Z                         //   || *             * ||   //
2020-03-19T12:36:03.4830952Z                       //_____||___*_________*___||_____//
2020-03-19T12:36:03.4831089Z 
2020-03-19T12:36:03.4878726Z Pandoc: pandoc 2.9.1.1
2020-03-19T12:36:03.4879190Z Compiled with pandoc-types 1.20, texmath 0.12, skylighting 0.8.3
2020-03-19T12:36:03.4879385Z Default user data directory: /github/home/.local/share/pandoc or /github/home/.pandoc
2020-03-19T12:36:03.4879657Z Copyright (C) 2006-2019 John MacFarlane
2020-03-19T12:36:03.4879864Z Web:  https://pandoc.org
2020-03-19T12:36:03.4880045Z This is free software; see the source for copying conditions.
2020-03-19T12:36:03.4880214Z There is no warranty, not even for merchantability or fitness
2020-03-19T12:36:03.4880374Z for a particular purpose.
2020-03-19T12:36:03.4972551Z 
2020-03-19T12:36:03.4973573Z Generating Site  at commit f6f12939006db9c371ea7eff8ee14b6c9fb2aed7.
2020-03-19T12:36:03.6660359Z Building sites … 
2020-03-19T12:36:03.6660623Z                    | EN  
2020-03-19T12:36:03.6661009Z +------------------+----+
2020-03-19T12:36:03.6661208Z   Pages            | 24  
2020-03-19T12:36:03.6667588Z   Paginator pages  |  0  
2020-03-19T12:36:03.6699669Z   Non-page files   |  1  
2020-03-19T12:36:03.6725009Z   Static files     |  7  
2020-03-19T12:36:03.6725344Z   Processed images |  1  
2020-03-19T12:36:03.6725719Z   Aliases          |  4  
2020-03-19T12:36:03.6726002Z   Sitemaps         |  1  
2020-03-19T12:36:03.6726281Z   Cleaned          |  0  
2020-03-19T12:36:03.6726479Z 
2020-03-19T12:36:03.6726745Z Total in 81 ms
2020-03-19T12:36:04.1517468Z Post job cleanup.

Workflow file:

name: Update portfolio

on:
  push:
    branches:
      - master

jobs:
  build-deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Repo
        uses: actions/checkout@master
        with:
          submodules: true
      - name: Publish Portfolio
        uses: chabad360/hugo-gh-pages@v1.1
        with:
          githubToken: ${{ secrets.PERSONAL_TOKEN }}
          repo: yanuehara/yanuehara.github.io
          hugoVersion: 0.54.0
chabad360 commented 4 years ago

Thank you guys for pointing this out, I have now tagged a new release (chabad360/hugo-gh-pages@v1.2) that you can point to, which no longer has this issue.