Skip to content

chore(master): release go 4.0.1 (#739) #991

chore(master): release go 4.0.1 (#739)

chore(master): release go 4.0.1 (#739) #991

Workflow file for this run

name: Docs
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
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