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.
|
|
|
name: github pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main # default branch
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: c-hive/gha-yarn-cache@v2
|
|
|
|
- run: yarn install
|
|
|
|
- run: yarn build
|
|
|
|
- run: mv googled29fba422c357ff8.html docs/
|
|
|
|
- run: mv robots.txt docs/
|
|
|
|
- run: mv ads.txt docs/
|
|
|
|
- run: node sitemap.js
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./docs
|
|
|
|
cname: vscode-api-cn.js.org
|