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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --branch=main
command: pages deploy dist --project-name ${{ vars.CLOUDFLARE_PAGES_PROJECT }} --branch=main
4 changes: 2 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Runs after CI passes on main → staging deploy.
# Requires CLOUDFLARE_PAGES_PROJECT repo variable to be set; skipped when absent.
# Gated on the CLOUDFLARE_PAGES_PROJECT repo variable: skipped in repos without staging.
name: Deploy Staging

on:
Expand Down Expand Up @@ -38,4 +38,4 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --project-name ${{ vars.CLOUDFLARE_PAGES_PROJECT }} --branch=main
command: pages deploy dist --project-name ${{ vars.CLOUDFLARE_PAGES_PROJECT }} --branch=main
4 changes: 3 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ concurrency:

jobs:
preview:
if: vars.CLOUDFLARE_PAGES_PROJECT != ''
runs-on: ubuntu-24.04
timeout-minutes: 10
environment: preview
permissions:
contents: read
deployments: write
Expand All @@ -29,5 +31,5 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --branch="${{ github.head_ref }}"
command: pages deploy dist --project-name ${{ vars.CLOUDFLARE_PAGES_PROJECT }} --branch="${{ github.head_ref }}"
gitHubToken: ${{ github.token }}
2 changes: 2 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {defineConfig} from 'vitepress'
export default defineConfig({
title: "Revopush",
description: "Revopush the Ultimate Alternative to CodePush",
// Emit static files to ./dist (repo root) so the shared `pages deploy dist` workflow works out of the box.
outDir: 'dist',
head: [
['link', {rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}],
[
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"docs:dev": "vitepress dev",
"build": "vitepress build",
"build:preview": "vitepress build",
"build:staging": "vitepress build",
"build:production": "vitepress build",
"test": "vitest run",
"typecheck": "tsc --noEmit",
Expand Down
3 changes: 0 additions & 3 deletions wrangler.toml

This file was deleted.