-
Notifications
You must be signed in to change notification settings - Fork 43
36 lines (34 loc) · 975 Bytes
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: GitHub Pages
on:
push:
branches:
- tio.run
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment: github-pages
env:
VITE_APPID: ${{ secrets.VITE_APPID }}
VITE_ROOM_UUID: ${{ secrets.VITE_ROOM_UUID }}
VITE_ROOM_TOKEN: ${{ secrets.VITE_ROOM_TOKEN }}
VITE_JUDGE0_KEY: ${{ secrets.VITE_JUDGE0_KEY }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: latest
run_install: true
- run: pnpm lint
- run: pnpm build-all
- run: pnpm -F playground build:ci
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/playground/dist