-
-
Notifications
You must be signed in to change notification settings - Fork 84
32 lines (31 loc) · 868 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Docs Deployment
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- name: Dependencies
run: yarn
- name: Build
run: yarn build
- name: Storybook
run: yarn build-storybook
- name: Prepare
run: |
mv ./storybook-static ./packages/docs/build/storybook
echo 'rct.lukasbach.com' >> ./packages/docs/build/CNAME
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: packages/docs/build
CLEAN: true
SINGLE_COMMIT: true
GIT_CONFIG_NAME: lukasbachbot
GIT_CONFIG_EMAIL: [email protected]