Skip to content

Merge pull request #526 from uploadcare/feat/aspect-ratio #213

Merge pull request #526 from uploadcare/feat/aspect-ratio

Merge pull request #526 from uploadcare/feat/aspect-ratio #213

Workflow file for this run

name: Deploy docs
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install deps
run: npm i
# CI should be able to commit built files to the gh-pages branch
# It's impossible if they're ignored
- name: Update .gitignore
run: sed -ie '/__REMOVE_BELOW_LINE__/,+1 d' .gitignore
- name: Build
run: npm run build
- name: Build static
run: npm run build:static
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .