manancodes / Screenbows

Magical colours for your screen
https://manancodes.github.io/Screenbows/
11 stars 9 forks source link

Add deploy script to github workflow #42

Closed mihrab34 closed 1 week ago

mihrab34 commented 8 months ago

Pull Request Template

Fixes Issue

Closes #24

Proposed Changes

modified the github action deploy to gh-pages to run automatically when a push or PR is made to the master branch

Checklist

Please check all the applicable boxes. To mark a box as done, use the following conventions:

- [x] - Correct; marked as done
- [ ] - Not correct; marked as **not** done

Notes to Reviewers

Screenshots

testdeploy

Test Plan

Related Issues

PR #37

manancodes commented 8 months ago

I'm still confused. Can you look into this once? https://github.com/gitname/react-gh-pages As it says :

Then, the deploy script will push the contents of that folder to a new commit on the gh-pages branch of the GitHub repository, creating that branch if it doesn't already exist.

These are the steps I usually follow for deployment.

mihrab34 commented 8 months ago

I'm still confused. Can you look into this once? https://github.com/gitname/react-gh-pages As it says :

Then, the deploy script will push the contents of that folder to a new commit on the gh-pages branch of the GitHub repository, creating that branch if it doesn't already exist.

These are the steps I usually follow for deployment.

Sure, I'll look into that. To explain the workflow, whenever new code changes is pushed or merged to the master branch, it automatically pushes the changes to the gh-pages branch after a successful build. I did the whole process in the script instead of using a package

manancodes commented 8 months ago

I'm still confused. Can you look into this once? https://github.com/gitname/react-gh-pages As it says :

Then, the deploy script will push the contents of that folder to a new commit on the gh-pages branch of the GitHub repository, creating that branch if it doesn't already exist.

These are the steps I usually follow for deployment.

Sure, I'll look into that. To explain the workflow, whenever new code changes is pushed or merged to the master branch, it automatically pushes the changes to the gh-pages branch after a successful build. I did the whole process in the script instead of using a package

Why are we pushing to gh-pages manually in this case? Can't we do it using the deploy script?

mihrab34 commented 8 months ago

@manancodes i'm using the package from https://github.com/gitname/react-gh-pages for the github action. You can check here for further details on the package

mihrab34 commented 8 months ago

@manancodes. there's a failing check, which has to do with permission. Can you review the branch or token permission?

actionfail