[CONFIG] - use the railway endpoint as API inside frontend-railway.json #804
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: Build & Deploy Storybook | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install and Build | |
run: | | |
yarn | |
yarn run build-storybook | |
- uses: "finnp/create-file-action@master" | |
env: | |
FILE_NAME: "storybook-static/CNAME" | |
FILE_DATA: "storybook.frontend.ro" | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: storybook-static # The folder the action should deploy. |