forked from COSCUP/2023
-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (46 loc) · 1.31 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
52
53
54
55
56
57
58
59
name: Deploy
on:
push:
branches:
- main
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ${{ matrix.os }}
env:
SPREADSHEET_API_KEY: ${{ secrets.SPREADSHEET_API_KEY }}
PRETALX_TOKEN: ${{secrets.PRETALX_TOKEN}}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- uses: pnpm/action-setup@v4
with:
version: 7.33.7
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install env dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- name: Install dependencies 👨🏻💻
run: pnpm install --frozen-lockfile
- name: Linting 🔍
run: pnpm run lint
- name: Download static resource
run: pnpm run tool:download-static-resource
- name: Build production 🚧
run: pnpm run build
- name: Deploy 📡
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true