Merge pull request #526 from uploadcare/feat/aspect-ratio #213
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: 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: . |