deploy #663
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: deploy | |
on: | |
workflow_dispatch: | |
schedule: | |
# At the end of every day | |
- cron: "0 0 * * *" | |
env: | |
GH_NPM_REGISTRY_TOKEN: ${{ secrets.GH_NPM_REGISTRY_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout DUF | |
uses: actions/checkout@v2 | |
with: | |
repository: UiPath/apollo-lab | |
ref: master | |
token: ${{ secrets.GH_CHECKOUT_TOKEN }} | |
- name: Node (LTS) | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "14.x" | |
- name: Restore all dependencies | |
run: npm run ci:all | |
- name: Build Storybook | |
run: npm run build:storybook | |
- name: Deploy storybook | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
publish_dir: ./storybook/dist | |
force_orphan: true | |
full_commit_message: "chore: update Storybook" |