Document locale_ids param (#678) #928
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: Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Deploy developers.phrase.com 🚀 | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
run: | | |
sed -e "s/TIME/$(date +%s)/g" ./doc/index.html > ./doc/index.html.skip_spec_cache | |
rm ./doc/index.html | |
mv ./doc/index.html.skip_spec_cache ./doc/index.html | |
npm install | |
npm run docs | |
mkdir -p output | |
cp -r doc output/api | |
npm install netlify-cli | |
./node_modules/.bin/netlify deploy --prod |