Skip to content

release

release #36

Workflow file for this run

name: release
on:
workflow_dispatch:
release:
types: [released]
jobs:
publish-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Installation
run: |
yarn install
- name: Build Website
run: |
yarn build:website
- name: Custom domain
run: |
echo "li.antv.vision" > website/dist/CNAME
- name: Push gh-pages
run: |
cd website/dist
git init
git config --local user.name antv
git config --local user.email antv@antfin.com
git add .
git commit -m "update by release action"
- uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.GITHUB_TOKEN}}
directory: website/dist
branch: gh-pages
force: true