Skip to content

feat: use Action instead of extraData + value #51

feat: use Action instead of extraData + value

feat: use Action instead of extraData + value #51

Workflow file for this run

# 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: false # optional, default is null
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Rush rebuild
run: node common/scripts/install-run-rush.js rebuild --verbose --to @eos/flow
- 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 }}