Initial GitHub Pages setup #1
Workflow file for this run
This file contains hidden or 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: GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - gh-pages-branch | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Build and deploy | |
| run: | | |
| # Your build and deploy script here | |
| mkdir -p public | |
| cp -r * public/ | |
| git config --global user.name "Guy Moalem" | |
| git config --global user.email "guy.moa@gmail.com" | |
| git add . | |
| git commit -m "Deploy to GitHub Pages" | |
| git push origin gh-pages-branch:gh-pages |