-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(website): π update website action
- Loading branch information
Showing
1 changed file
with
11 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,6 @@ on: | |
pull_request: | ||
branches: main | ||
paths: website/** | ||
|
||
defaults: | ||
run: | ||
working-directory: ./website | ||
|
||
jobs: | ||
deploy: | ||
|
@@ -23,23 +19,27 @@ jobs: | |
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
node-version: lts/* | ||
version: 8 | ||
|
||
- name: Setup website root and Build step | ||
run: "npm install && npm run build" # π Update the build command(s) if necessary | ||
- name: Build qwik-sonner | ||
run: "pnpm install --no-frozen-lockfile && pnpm run build" | ||
|
||
- name: Build website | ||
run: "pnpm install --no-frozen-lockfile && pnpm run build" | ||
working-directory: ./website | ||
|
||
- name: Upload to Deno Deploy | ||
uses: denoland/deployctl@v1 | ||
with: | ||
project: "qwik-sonner" | ||
entrypoint: "https://deno.land/[email protected]/http/file_server.ts" # π Update the entrypoint if necessary | ||
root: "dist" # π Update the root if necessary | ||
root: "./website/dist" # π Update the root if necessary |