release #34
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: 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 [email protected] | |
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 |