Skip to content

Instantly share code, notes, and snippets.

@blopa
Created May 15, 2021 12:32
Show Gist options
  • Save blopa/d152942ff56f4a2c3a5f2e8e4750da60 to your computer and use it in GitHub Desktop.
Save blopa/d152942ff56f4a2c3a5f2e8e4750da60 to your computer and use it in GitHub Desktop.
name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
persist-credentials: false
- name: Install and Build 🚧
run: |
npm cache clean --force
npm install
npm run clean
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
token: ${{ secrets.ACCESS_TOKEN }}
repository-name: blopa/pablo.gg
branch: gh-pages
folder: public
clean: true
single-commit: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment