Skip to content

Instantly share code, notes, and snippets.

@skrdvx
Created September 6, 2022 23:45
Show Gist options
  • Select an option

  • Save skrdvx/b981ecd531ea4def46c095bfed36f8b1 to your computer and use it in GitHub Desktop.

Select an option

Save skrdvx/b981ecd531ea4def46c095bfed36f8b1 to your computer and use it in GitHub Desktop.
Deploy to github pages
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