townsquare/.github/workflows/deploy.yml

24 lines
455 B
YAML
Raw Normal View History

2020-04-03 17:34:56 +00:00
name: Deploy to GitHub Pages
on:
push:
branches:
2020-06-30 11:58:39 +00:00
- main
2020-04-03 17:34:56 +00:00
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
run: |
npm install
npm run-script build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist