Skip to content

Instantly share code, notes, and snippets.

@WhiteBlackGoose
Last active August 24, 2021 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WhiteBlackGoose/54abf0c6e1a941afd451bd68448f3a9d to your computer and use it in GitHub Desktop.
Save WhiteBlackGoose/54abf0c6e1a941afd451bd68448f3a9d to your computer and use it in GitHub Desktop.
Deployment script to mirror your github readme into your personal web page!
  1. Create a github readme. To do it, create YourUsername repo.
  2. In your repo, create ./github/workflows/website_mirror.yml and paste the content of the file below into it.
  3. Go to its Settings -> Pages, select gh-pages as Source.
  4. Create README.md in the root of the repo. Fill it with your info!
  5. Done! Your personal web page is at yourusername.github.io/YourUsername.
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