This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
9,198 additions
and
28,578 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,12 +6,11 @@ on: | |
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- "crates" | ||
- "website/playground" | ||
- 'crates' | ||
- 'website/playground' | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
@@ -22,16 +21,25 @@ jobs: | |
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- run: npm install --prefix website/playground | ||
- uses: jetli/[email protected] | ||
- run: npm run build --prefix website/playground -- --base=/$GITHUB_SHA/ | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
run_install: | | ||
args: [--prefix website/playground] | ||
- run: pnpm build --prefix website/playground -- --base=/$GITHUB_SHA/ | ||
- name: Publish | ||
uses: jakejarvis/s3-sync-action@master | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository | ||
SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository | ||
DEST_DIR: $GITHUB_SHA | ||
|
||
- name: Set Playground URL | ||
|
@@ -72,5 +80,3 @@ jobs: | |
issue-number: ${{ steps.pr-number.outputs.pr }} | ||
body: | | ||
${{ steps.url.outputs.url }} | ||
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 |
---|---|---|
|
@@ -8,8 +8,6 @@ on: | |
branches: | ||
- main | ||
|
||
|
||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
@@ -20,14 +18,22 @@ jobs: | |
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- run: npm install --prefix website/playground | ||
- uses: jetli/[email protected] | ||
- run: npm run build --prefix website/playground | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
run_install: | | ||
args: [--prefix website/playground] | ||
- run: pnpm build --prefix website/playground | ||
- name: Publish | ||
uses: jakejarvis/s3-sync-action@master | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository | ||
|
||
SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository |
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
Oops, something went wrong.