[fix] Abort Controller & Signal polyfill #23
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: CI & CD | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Build-and-Publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Generate files | |
run: pnpm generate | |
- name: Deploy for Global | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./public | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
force_orphan: true | |
cname: polyfill.web-cell.dev | |
- name: Deploy for China mainland | |
uses: bacongobbler/azure-blob-storage-upload@v2.0.0 | |
with: | |
source_dir: ./public | |
container_name: $web | |
connection_string: ${{ secrets.ConnectionString }} | |
sync: 'true' |