Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temp: cf action #572

Merged
merged 6 commits into from
Feb 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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