sova.sh #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |