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

Best way to push ongoing changes #178

Open
2 tasks
nssensalo opened this issue Feb 10, 2024 · 3 comments
Open
2 tasks

Best way to push ongoing changes #178

nssensalo opened this issue Feb 10, 2024 · 3 comments
Assignees
Labels

Comments

@nssensalo
Copy link

#push #commits

Which of these applies to you? (Select all that apply)

  • [X ] I'm following the tutorial as-written from start to finish
  • I'm using a custom domain (note: not covered in tutorial)

Step

Which step of the tutorial do you want someone to help you with? (Select one)

  • Step number: (put the number here)
  • [X ] Something else

Links

Tell us where we can find your code and your GitHub Pages site:

  • GitHub repository (source code):
  • GitHub Pages site (nssensalo.github.io):

Everything else

You can put whatever you want into this section.

My site is up and running. Moving forwards, what is the best way to publish ongoing changes? Do I " npm run deploy" for every update? If so, I see on the github page commits and pull request for the gh-page branch. Do I NEED to address those ? Beacuse there isn't another comperable gh-pages branch to compare and reconcile with. I just leave it?

Thanks

@dj-lee1
Copy link

dj-lee1 commented Mar 13, 2024

I have the same question - should I commit to main/master, checkout gh-branch, then deploy? Commit to main and then pull request?

@gitname
Copy link
Owner

gitname commented Apr 28, 2024

Hi @nssensalo and @dj-lee1, thanks for asking this question. The way I do it is to store my source code on the master or main branch (like with any other repository); and then, separately, whenever I want to update the deployed site, run $ npm run deploy.

@gitname
Copy link
Owner

gitname commented Apr 28, 2024

At least, that is how I used to do it. Nowadays (on my real, work projects), I use GitHub Actions with something like this to build and deploy the app for me whenever I create a new Release on GitHub.

@gitname gitname self-assigned this Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants