-
Notifications
You must be signed in to change notification settings - Fork 495
51 lines (49 loc) · 1.27 KB
/
deploy.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
workflow_run:
workflows: ["Benchmark runner"]
branches: [main]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
environment: deploy
steps:
- name: Checkout Commit
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install pnpm
run: |
corepack enable
corepack prepare pnpm@next-8 --activate
- name: Install dependencies
run: pnpm install
- name: Update pnpm bundle
run: curl -L --fail https://get.pnpm.io/v5.js > static/pnpm.js
- name: Update translations
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
run: pnpm crowdin:sync
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
DEPLOYMENT_BRANCH: master
run: |
git config --global user.email "[email protected]"
git config --global user.name "gh-actions"
pnpm run deploy