feat: add Bilibili_No_Autoplay #12
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup node | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: 12 | |
| - name: Install Yarn | |
| run: npm i -g yarn | |
| - name: Get yarn cache directory path | |
| id: yarn-cache-dir-path | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - uses: actions/cache@v1 | |
| id: yarn-cache | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install and build | |
| run: | | |
| yarn install --frozen-lockfile | |
| npm run build-site | |
| node ./scripts/copy-master.js | |
| - name: Deploy master | |
| uses: JamesIves/github-pages-deploy-action@4.1.4 | |
| with: | |
| branch: master | |
| folder: dist/master | |
| - name: Deploy pages | |
| uses: JamesIves/github-pages-deploy-action@4.1.4 | |
| with: | |
| branch: gh-pages | |
| folder: dist/pages |