Code Monkey home page Code Monkey logo

Comments (6)

peaceiris avatar peaceiris commented on September 16, 2024 1

When we set PUBLISH_DIR: ., we have to consider .git and .github.

See #63 and try peaceiris/[email protected].

from actions-gh-pages.

peaceiris avatar peaceiris commented on September 16, 2024

Do you understand that emptyCommits: false does not push always?

And,
Is your publishing file index.html? Try the following.

      - name: Prepare public
        run: |
          mkdir ./public
          mv ./index.html ./public/
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v2
        env:
          ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
          PUBLISH_BRANCH: somebranch
          PUBLISH_DIR: ./public

from actions-gh-pages.

peaceiris avatar peaceiris commented on September 16, 2024

I reproduced your case on https://github.com/peaceiris/test-elm/commit/96e06d5f030a01d0fb7efd8b6713c032d731e9da/checks?check_suite_id=370791432

Did you get a message like this?

INFO: Allowing empty commits: false
On branch somebranch
nothing to commit, working tree clean
INFO: No changes detected, skipping deployment

This is an expected behavior of emptyCommits: false.

from actions-gh-pages.

vladimirlogachev avatar vladimirlogachev commented on September 16, 2024

Thank you for you response (and for all your work).
I understand emptyCommits option as a way to avoid pushing in case when build was not changed. It does not cause a problem.

The solution with PUBLISH_DIR: ./public works well
for some reason it does not work with PUBLISH_DIR: . (even if build was definitely changed)
What is the reason?

from actions-gh-pages.

vladimirlogachev avatar vladimirlogachev commented on September 16, 2024

Thank you.

from actions-gh-pages.

github-actions avatar github-actions commented on September 16, 2024

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.

from actions-gh-pages.

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.