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

Build issue with docsy-example repo #340

Closed
capsulecorplab opened this issue May 22, 2020 · 7 comments
Closed

Build issue with docsy-example repo #340

capsulecorplab opened this issue May 22, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request resolved resolved issue support User support

Comments

@capsulecorplab
Copy link

Describe the bug

Adding the example workflow in forked docsy-example repo results in the following error:

https://github.com/capsulecorplab/docsy-example/runs/700468489?check_suite_focus=true#step:4:5

To Reproduce

Steps to reproduce the behavior:

  1. Fork https://github.com/google/docsy-example.git
  2. Create .github/workflows/ directory in forked repo
  3. Create and add deploy.yml file with example workflow to .github/workflows/ directory
  4. Commit changes
  5. See build log in GitHub Actions

Expected behavior

A successful build.

Your YAML file

capsulecorplab/docsy-example@ba3919d

@capsulecorplab capsulecorplab added the bug Something isn't working label May 22, 2020
@peaceiris
Copy link
Owner

Turn on extended: true to process SCSS. (Hugo extended version!)

@peaceiris peaceiris added support User support and removed bug Something isn't working labels May 22, 2020
@peaceiris
Copy link
Owner

BTW, GitHub is down now. Maybe you will get the following issues.

capsulecorplab added a commit to capsulecorplab/docsy-example that referenced this issue May 22, 2020
@capsulecorplab
Copy link
Author

BTW, GitHub is down now. Maybe you will get the following issues.

Thanks! I'll probably tackle these once the SCSS processing gets resolved.

@capsulecorplab
Copy link
Author

Turn on extended: true to process SCSS. (Hugo extended version!)

Just pushed a commit with extended: true. Still running into same issue https://github.com/capsulecorplab/docsy-example/runs/700653318?check_suite_focus=true#step:4:5

@peaceiris
Copy link
Owner

I also failed to build your project locally. Your problem is related to the docsy-example or the docsy theme. Please ask them about this issue. Or go to the Hugo forum.

peaceiris added a commit that referenced this issue May 24, 2020
An example workflow for autoprefixer, postcss-cli,
and a Hugo theme which has recursive Git submodules

#340
google/docsy-example#60
@peaceiris peaceiris added the enhancement New feature or request label May 27, 2020
@peaceiris
Copy link
Owner

google/docsy-example#60 (comment)

I got it. You need to install the dependencies: autoprefixer and postcss-cli. Please try the following workflow.

name: github pages

on:
  push:
    branches:
      - master

jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive  # Fetch the Docsy theme
          fetch-depth: 0         # Fetch all history for .GitInfo and .Lastmod

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: '0.71.1'
          extended: true

      - name: Setup Node
        uses: actions/setup-node@v1
        with:
          node-version: '12.x'

      - name: Cache dependencies
        uses: actions/cache@v1
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - run: npm ci
      - run: hugo --minify

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

vincenzopalazzo added a commit to material-ui-swing/material-ui-swing.github.io that referenced this issue Feb 21, 2021
Fixed Github actions with the  following example

peaceiris/actions-hugo#340

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@peaceiris peaceiris added the resolved resolved issue label Jun 25, 2021
@github-actions
Copy link

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 Jun 25, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request resolved resolved issue support User support
Projects
None yet
Development

No branches or pull requests

2 participants