s0 / git-publish-subdir-action

GitHub Action to push a subdirectory as a branch to any git repo (e.g. for GitHub Pages)
https://github.com/marketplace/actions/push-git-subdirectory-as-branch
MIT License
210 stars 36 forks source link

DeprecationWarning: Buffer() is deprecated due to security and usability issues #29

Closed miloskroulik closed 3 years ago

miloskroulik commented 3 years ago

In the ouput of the action run, I see:

(node:3616) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
yousifk commented 3 years ago

34

BlackPhlox commented 3 years ago

Might be relevant for anyone who stumbles upon this: If you just have a branch in you repo you want to push the folder 'build' to. The you can use peaceiris' script:

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

Notice: This works right out of the box, you do not need to set a GITHUB_TOKEN, github does that automatically for you as opposed to provide a ssh private and public key.

s0 commented 3 years ago

Fixed in #42

s0 commented 3 years ago

Now fixed in latest release: https://github.com/s0/git-publish-subdir-action/releases/tag/v2.4.1