Skip to content

Commit

Permalink
temp: cf action (#572)
Browse files Browse the repository at this point in the history
* chore: add deploy action

* fix: typo

* fix: typo
  • Loading branch information
sasicodes authored Feb 4, 2023
1 parent 72c2cd7 commit 6fafa35
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Export and Deploy

on:
workflow_run:
branches: [main]
workflows: [CI]
types:
- completed

jobs:
checkout:
uses: lenstube-xyz/lenstube/.github/workflows/ci.yml@main
deploy:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write


steps:
- name: Build and Export 📦
run: npx turbo run export

- name: Publish to Cloudflare Pages 🚀
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: lenstube-web
directory: apps/web/out
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [main]
pull_request:
types: [opened, synchronize]
workflow_call:

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
- name: Setup Node.js environment 📐
uses: actions/setup-node@v3
with:
node-version: 16
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies 🧳
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18

2 comments on commit 6fafa35

@vercel
Copy link

@vercel vercel bot commented on 6fafa35 Feb 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/web

lenstube.xyz
web-git-main-lenstube.vercel.app
web-lenstube.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 6fafa35 Feb 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

embed – ./apps/embed

Please sign in to comment.