You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
587 B
22 lines
587 B
name: Deploy CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/master'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
- run: yarn
|
|
- run: yarn run lint
|
|
- run: yarn run tsc
|
|
- name: Build and Deploy
|
|
uses: JamesIves/github-pages-deploy-action@master
|
|
env:
|
|
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: site
|
|
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
|
|
BRANCH: gh-pages
|
|
FOLDER: 'dist/'
|
|
BUILD_SCRIPT: yarn && npm run deploy
|
|
|