Created
May 15, 2021 12:32
-
-
Save blopa/d152942ff56f4a2c3a5f2e8e4750da60 to your computer and use it in GitHub Desktop.
This file contains 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: | |
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