javascript-camp/.github/workflows/deploy.yaml

31 lines
1.1 KiB
YAML
Raw Normal View History

2020-08-19 19:16:39 -04:00
name: Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm install
npm run build
env:
GH_USERNAME: ${{secrets.GH_USERNAME}}
GH_NAME: ${{secrets.GH_NAME}}
GH_EMAIL: ${{secrets.GH_EMAIL}}
PROJECT_NAME: ${{secrets.PROJECT_NAME}}
PROJECT_TITLE: ${{secrets.PROJECT_TITLE}}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.5.9
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.: