Skip to content

Commit

Permalink
chore: update deploy github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan007 committed Nov 22, 2023
1 parent 54a53db commit cd41022
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Latest Playground
name: Deploy Latest Playground [on release]

on:
release:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/deploy-latest-playground-manual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Latest Playground [manual]

on:
push:
branches: [ latest-release-website ]
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install and Build
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
yarn install
yarn build:playground
- name: Write version.md
run: git log -1 &> packages/playground/dist/version.md

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/playground/dist # The folder the action should deploy.
clean: true
clean-exclude: nightly
31 changes: 31 additions & 0 deletions .github/workflows/deploy-main-playground-auto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Main Playground [auto]

on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install and Build
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
yarn install
yarn build:playground
- name: Write version.md
run: git log -1 &>> packages/playground/dist/version.md

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/playground/dist # The folder the action should deploy.
target-folder: nightly
clean: true
31 changes: 31 additions & 0 deletions .github/workflows/deploy-main-playground-manual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Main Playground [manual]

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install and Build
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
yarn install
yarn build:playground
- name: Write version.md
run: git log -1 &> packages/playground/dist/main/version.md

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/playground/dist # The folder the action should deploy.
target-folder: nightly
clean: true

0 comments on commit cd41022

Please sign in to comment.