Skip to content

Commit 3cc7c96

Browse files
committed
ci: add website deploy script
1 parent 9af497d commit 3cc7c96

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/actions/test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
shell: bash
2020
run: npx nx affected:lint --base=last-release --exclude=website
2121

22-
- name: Build Headless
22+
- name: Build Headless Kit
2323
shell: bash
2424
run: npx nx build headless
2525

.github/workflows/website.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Website Deploy
2+
3+
on:
4+
- workflow_dispatch
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
if: github.ref == 'refs/heads/main'
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup
15+
uses: ./.github/actions/setup
16+
- name: Deploy
17+
env:
18+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
19+
shell: bash
20+
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} npx nx deploy website

0 commit comments

Comments
 (0)