Giter VIP home page Giter VIP logo

Comments (6)

garloff avatar garloff commented on August 27, 2024

This one is non-trivial, I'm afraid. You need two make to reliably build the web pages.
We could commit the .dep file into the repo to avoid it. I personally dislike keeping generated content in git, but maybe I need to overcome this ...

from website.

itrich avatar itrich commented on August 27, 2024

This is what I'm doing so far within my GitHub Action pipline: https://github.com/itrich/website/actions/runs/1037602004

   - uses: actions/checkout@v2
    - name: Setup Node.js environment
      uses: actions/[email protected]  
    - name: Install dependencies
      run: |
        sudo apt-get install sed python-markdown imagemagick cleancss
        sudo npm install html-minifier clean-css-cli -g
    - name: make .dep
      continue-on-error: true
      run: make .dep
    - name: make html
      run: make html
    - name: rsync build
      uses: burnett01/[email protected]

However, I'm still struggling to avoid the step make .dep to fail unsuccessfully. Have you any clues?

from website.

garloff avatar garloff commented on August 27, 2024

You could do a touch -d "2000-01-01" .dep && make .dep to avoid the exit code killing your pipeline.

from website.

itrich avatar itrich commented on August 27, 2024

Seems that the root cause was tmp/logos.html not being present before executing make .dep, which seems odd.
However, my GitHub Action finally runs flawlessly, see https://github.com/itrich/website/actions 👍

from website.

garloff avatar garloff commented on August 27, 2024

The processing is
source --- (md2html/genlogos.py/include.py) ---> tmp ----- (minify) ------> build.
The real problem is that we source the .dep file from the Makefile which itself knows how to generate .dep.
We probably need to split the Makefile into two Makefiles to make things clean.
The first Makefile generating all that's needed for .dep and then generating .dep. And a second that can then cleanly source the .dep file.

from website.

itrich avatar itrich commented on August 27, 2024

Closed by #124

from website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.