Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    How to get Gogs to automatically post to GitHub Pages?

    Support
    3
    4
    256
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      ntnsndr last edited by

      Hi! I'm trying to replicate a GitHub/Lab Pages setup using the combo of Gogs and GitHub Pages on Cloudron. Basically the goal is that anytime a commit occurs on Gogs or local changes are pushed to it, I want it to deploy to the GitHub Pages site. I also want to do this in a way that doesn't expose the credentials to GitHub Pages in a git config data file.

      My assumption is that, if this is possible, it would be through Git Hooks on Gogs. But I don't see how best to include login credentials there. I'm not the best at shell scripts. Can anyone help me with this?

      Thank you so much.

      murgero 1 Reply Last reply Reply Quote 1
      • murgero
        murgero App Dev @ntnsndr last edited by

        @ntnsndr possible webhook? I am not familiar with gogs, but it supports webhooks right? If not you could install n8n and automate the task you would normally do manually.

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~
        Matrix: @murgero:urgero.org

        N 1 Reply Last reply Reply Quote 0
        • N
          ntnsndr @murgero last edited by

          @murgero Thanks—yes, it does support Webhooks, as well as Git Hooks. But any suggestions how to handle the authentication process that GitHub Pages requires in a script?

          murgero 1 Reply Last reply Reply Quote 0
          • murgero
            murgero App Dev @ntnsndr last edited by

            @ntnsndr You talking about Github Pages official, or the Cloudron app?

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~
            Matrix: @murgero:urgero.org

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB