Created
September 6, 2022 23:45
-
-
Save skrdvx/b981ecd531ea4def46c095bfed36f8b1 to your computer and use it in GitHub Desktop.
Deploy to github pages
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: Deploy to github pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| gh-pages-deploy: | |
| name: Deploying to gh-pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Node.js for use with actions | |
| uses: actions/setup-node@v1.1.0 | |
| with: | |
| version: 12.x | |
| - name: Checkout branch | |
| uses: actions/checkout@v2 | |
| - name: Clean install dependencies | |
| run: npm ci | |
| - name: Run deploy script | |
| run: | | |
| git config user.name "RolandDoda" && git config user.email "rolanddoda2014@gmail.com" | |
| npm run gh-pages-deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment