-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix preview deployments (#1213)
- Loading branch information
1 parent
eb947e8
commit a0621c8
Showing
220 changed files
with
3,089 additions
and
4,655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
name: Docs Production Deployment | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- sites/docs/** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- sites/docs/** | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
name: Publish to Cloudflare Pages | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
name: Publish to Cloudflare Pages | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
# Image cache setup | ||
- name: Setup Image cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: '**/node_modules/.cache/imagetools' | ||
key: ${{ runner.os }}-image-cache-${{ hashFiles('**/src/lib/img') }} | ||
# Image cache setup | ||
- name: Setup Image cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "**/node_modules/.cache/imagetools" | ||
key: ${{ runner.os }}-image-cache-${{ hashFiles('**/src/lib/img') }} | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build site | ||
run: pnpm build | ||
- name: Build site | ||
run: pnpm build | ||
|
||
- name: Deploy to Cloudflare Pages | ||
uses: AdrianGonz97/refined-cf-pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
projectName: shadcn-svelte | ||
directory: ./.svelte-kit/cloudflare | ||
workingDirectory: sites/docs | ||
deploymentName: Production | ||
- name: Deploy to Cloudflare Pages | ||
uses: AdrianGonz97/refined-cf-pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
projectName: shadcn-svelte | ||
directory: ./.svelte-kit/cloudflare | ||
workingDirectory: sites/docs | ||
deploymentName: Production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.changeset | ||
.github | ||
.DS_Store | ||
node_modules | ||
**/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.