-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (66 loc) · 2.1 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Github Pages Astro CI
on:
push:
branches: [main]
workflow_dispatch:
jobs:
ru:
runs-on: ubuntu-22.04
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v2
- name: 🐧 Use Node.js v18.x
uses: actions/setup-node@v3
with:
node-version: v18.x
cache: 'pnpm'
- name: 🔍 Installation
run: pnpm install
- name: 🔧 Build RU — sova.dev
run: pnpm build
env:
DEVTO_API_KEY: '${{ secrets.DEVTO_API_KEY }}'
YOUTUBE_API_KEY: '${{ secrets.YOUTUBE_API_KEY }}'
EFFECTOR_COMMUNITY_API_KEY: '${{ secrets.EFFECTOR_COMMUNITY_API_KEY }}'
SIMPLECAST_API_KEY: '${{ secrets.SIMPLECAST_API_KEY }}'
PUBLIC_SITE: https://sova.sh
PUBLIC_LANGUAGE: ru
PUBLIC_GTAG: UA-67236238-5
- name: 🚀 Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ./dist
en:
runs-on: ubuntu-22.04
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v2
- name: 🐧 Use Node.js v18.x
uses: actions/setup-node@v3
with:
node-version: v18.x
cache: 'pnpm'
- name: 🔍 Installation
run: pnpm install
- name: 🔧 Build EN — sergeysova.com
run: pnpm build
env:
DEVTO_API_KEY: '${{ secrets.DEVTO_API_KEY }}'
YOUTUBE_API_KEY: '${{ secrets.YOUTUBE_API_KEY }}'
EFFECTOR_COMMUNITY_API_KEY: '${{ secrets.EFFECTOR_COMMUNITY_API_KEY }}'
SIMPLECAST_API_KEY: '${{ secrets.SIMPLECAST_API_KEY }}'
PUBLIC_SITE: https://sergeysova.com
PUBLIC_LANGUAGE: en
PUBLIC_GTAG: G-PHKCHPT847
- name: 🚀 Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ./dist
repository-name: sergeysova/sergeysova.com
token: '${{ secrets.ACCESS_TOKEN }}'