feat: improve sum ops #26
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
# This is a basic workflow to help you get started with Actions | |
name: Page Deploy | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main and dev branch | |
push: | |
branches: [main,dev] | |
pull_request: | |
branches: [main,dev] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "16.x" | |
- name: Cache pnpm modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnp | |
- name: Setup PNPM | |
# You may pin to the exact commit or the version. | |
# uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2 | |
uses: pnpm/action-setup@v2.0.1 | |
with: | |
# Version of PNPM to install | |
version: 6.24.2 | |
# Where to store PNPM files | |
# If specified, run `pnpm install` | |
run_install: true # optional, default is null | |
- name: Build Page | |
run: pnpm build:gh-page | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./packages/flow/dist | |
publish_branch: gh-pages # deploying branch | |
destination_dir: ${{ github.base_ref }} |