- Create a github readme. To do it, create
YourUsername
repo. - In your repo, create
./github/workflows/website_mirror.yml
and paste the content of the file below into it. - Go to its
Settings -> Pages
, selectgh-pages
as Source. - Create README.md in the root of the repo. Fill it with your info!
- Done! Your personal web page is at
yourusername.github.io/YourUsername
.
Last active
August 24, 2021 03:58
-
-
Save WhiteBlackGoose/54abf0c6e1a941afd451bd68448f3a9d to your computer and use it in GitHub Desktop.
Deployment script to mirror your github readme into your personal web page!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Website mirror | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Rename readme to index | |
run: mv README.md index.md | |
- uses: JamesIves/github-pages-deploy-action@4.1.4 | |
name: gh-pages publish | |
with: | |
branch: gh-pages | |
folder: . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment