Skip to content
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
46 changes: 46 additions & 0 deletions .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy to development

env:
PROJECT_NAME: nexorbs-webpage-dev

on:
push:
branches:
- dev
paths:
- '.github/workflows/deploy-dev.yaml'
- 'package.json'
- 'tsconfig.json'
- 'public/**'
- 'src/**'

workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: NodeJS Cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-

- name: Install Deps
run: npm install

- name: Build
run: npm run build-only

- name: Deploy to dev.nexorbs.com
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: development

13 changes: 12 additions & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name = "nexorbs-webpage"

compatibility_date = "2025-06-10"
compatibility_flags = [
"nodejs_compat",
Expand All @@ -12,4 +13,14 @@ directory = "./dist"
mode = "smart"

[observability]
enabled = true
enabled = true

[env.development]
name = "nexorbs-webpage-dev"

[env.development.assets]
directory = "./dist"

[env.development.routes]
- pattern = "dev.nexorbs.com/*"

Loading