Skip to content

Genaral website update/overhaul #22

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

Merged
merged 40 commits into from
Oct 2, 2023
Merged

Genaral website update/overhaul #22

merged 40 commits into from
Oct 2, 2023

Conversation

MagicLike
Copy link
Member

@MagicLike MagicLike commented Sep 18, 2023

  • Update links
    • Add rel="noopener" to every link
    • Update outdated links
    • Remove trailing slashes
    • Remove dead links
  • Spelling
  • Code formatting
  • Update FAQ
  • Remove inline CSS
  • Comply with HTML standards
  • Add donation buttons/widgets
  • Rearrange devices according to README
  • Adding border-radius to menu to fit website theme (Website theming #18)
  • Use transition: ease-in on hover for certain areas like the menu, the Download buttons, etc. (Website theming #18)
  • Cleaner coding suggestions #13
  • Improve general website security and privacy #12
  • Document website build workflow in README
    • Create a GitHub Actions build workflow (see in action here)
  • Add 404 page

@MagicLike MagicLike added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Sep 18, 2023
@MagicLike MagicLike self-assigned this Sep 18, 2023
@tsterbak
Copy link
Member

Are you sure the new workflow works?

Also, it would be great if the build and deployment would be triggered by adding commits to the main branch, and not only through PRs.

@MagicLike
Copy link
Member Author

MagicLike commented Sep 22, 2023

Also, it would be great if the build and deployment would be triggered by adding commits to the main branch, and not only through PRs.

fixed!

@MagicLike
Copy link
Member Author

MagicLike commented Sep 22, 2023

Are you sure the new workflow works?

I tested it multiple times, it should work...

This was unlinked from issues Sep 22, 2023
@MagicLike MagicLike marked this pull request as ready for review September 22, 2023 11:31
@MagicLike MagicLike requested a review from tsterbak September 22, 2023 11:31
Copy link
Member

@tsterbak tsterbak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@tsterbak
Copy link
Member

I'm planning to push the next release of the Installer on Friday (next week) and then publish this PR.

Thanks a lot for cleaning and improving the website! 😊

@MagicLike
Copy link
Member Author

I'm planning to push the next release of the Installer on Friday (next week) and then publish this PR.

Thanks a lot for cleaning and improving the website! 😊

No problem! :D - But there is still stuff to do after that ^^

@MagicLike MagicLike changed the title WIP: Genaral website update/overhaul Genaral website update/overhaul Sep 22, 2023
@tsterbak
Copy link
Member

Did you test the new github workflow? Because every time I touch this stuff something breaks if I don't test it.
Otherwise, I will remove the workflow update from this PR and try to get it in after the release.

@MagicLike
Copy link
Member Author

MagicLike commented Sep 24, 2023

Did you test the new github workflow? Because every time I touch this stuff something breaks if I don't test it. Otherwise, I will remove the workflow update from this PR and try to get it in after the release.

I did - multiple times, One example can be seen here: https://github.com/Magic-Tests/openandroidinstaller-dev.github.io/actions

But if you feel uncomfortable about it, feel free to not include it for now!

@tsterbak
Copy link
Member

I did - multiple times, One example can be seen here: https://github.com/Magic-Tests/openandroidinstaller-dev.github.io/actions

Okay great, great! 😊 looks perfect 👏 thank you for clarifying.

But if you feel uncomfortable about it, feel free to not include it for now!

No, I want it in and it looks solid 🙂

@tsterbak tsterbak merged commit cb0b2ef into main Oct 2, 2023
@tsterbak
Copy link
Member

tsterbak commented Oct 2, 2023

The build workflow didn't work properly, since it has no permission to push to main. I guess this is a general issue and cannot be avoided if the main branch is protected and only allows commits through PRs... Maybe pushing to the deployment branch might work? I'm not sure

@MagicLike
Copy link
Member Author

The build workflow didn't work properly, since it has no permission to push to main. I guess this is a general issue and cannot be avoided if the main branch is protected and only allows commits through PRs... Maybe pushing to the deployment branch might work? I'm not sure

I'm gonna do some research later 🤔

@tsterbak
Copy link
Member

tsterbak commented Oct 2, 2023

I'm gonna do some research later 🤔

Seems to be an annoying issue :D

But other than that it would have worked great! And it also looks great now, thanks a lot :)

@MagicLike
Copy link
Member Author

MagicLike commented Oct 2, 2023

I'm gonna do some research later 🤔

Seems to be an annoying issue :D

But other than that it would have worked great! And it also looks great now, thanks a lot :)

Hmmm it should be possible for you to allow the Actions user to commit directly to main in the branch protection section 🤔 (Should be github-actions[bot])

@tsterbak
Copy link
Member

tsterbak commented Oct 2, 2023

Hmmm it should be possible for you to allow the Actions user to commit directly to main in the branch protection section 🤔 (Should be github-actions[bot])

Where did you get that info from? My understanding was, that has been removed, since it technically allows to bypass branch protection for anyone who can create branches on the repo.

@MagicLike
Copy link
Member Author

Hmmm it should be possible for you to allow the Actions user to commit directly to main in the branch protection section 🤔 (Should be github-actions[bot])

Where did you get that info from? My understanding was, that has been removed, since it technically allows to bypass branch protection for anyone who can create branches on the repo.

I made a quick search and found this: https://overflow.adminforge.de/questions/69263843/how-to-push-to-protected-main-branches-in-a-github-action#72515781

@tsterbak
Copy link
Member

tsterbak commented Oct 2, 2023

I made a quick search and found this: https://overflow.adminforge.de/questions/69263843/how-to-push-to-protected-main-branches-in-a-github-action#72515781

Going forward, this will allow anyone allowed to create branches on the repo to basically commit with admin privileges. And some comments say it doesn't even work.

I guess I rather prefer to just have html commited in the public folder on main deployed? Seems very easy and I build the files locally first either way. 🤔 I will think about it

@MagicLike
Copy link
Member Author

I made a quick search and found this: https://overflow.adminforge.de/questions/69263843/how-to-push-to-protected-main-branches-in-a-github-action#72515781

Going forward, this will allow anyone allowed to create branches on the repo to basically commit with admin privileges. And some comments say it doesn't even work.

I guess I rather prefer to just have html commited in the public folder on main deployed? Seems very easy and I build the files locally first either way. 🤔 I will think about it

wait, there should also be an option to let GH Actions run alongside a PR, for example, when it gets approved it will build the website on the PR branch and then it can get merged...

@tsterbak
Copy link
Member

tsterbak commented Oct 2, 2023

wait, there should also be an option to let GH Actions run alongside a PR, for example, when it gets approved it will build the website on the PR branch and then it can get merged...

That would be great I guess :)
Could we even get a preview deployment of the website in this way?

@MagicLike
Copy link
Member Author

wait, there should also be an option to let GH Actions run alongside a PR, for example, when it gets approved it will build the website on the PR branch and then it can get merged...

That would be great I guess :)
Could we even get a preview deployment of the website in this way?

That should also be possible... - But I will need to investigate that further in the next few days (I have never done that before)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleaner coding suggestions Improve general website security and privacy
2 participants