github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/.github/workflows/docs.yml (about) 1 name: Docs 2 on: 3 push: 4 branches: 5 - master 6 jobs: 7 build-and-deploy: 8 runs-on: ubuntu-latest 9 steps: 10 - name: Checkout 🛎️ 11 uses: actions/checkout@v3 12 with: 13 persist-credentials: false 14 15 - name: Deploy developers.phrase.com 🚀 16 env: 17 NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} 18 NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} 19 run: | 20 sed -e "s/TIME/$(date +%s)/g" ./doc/index.html > ./doc/index.html.skip_spec_cache 21 rm ./doc/index.html 22 mv ./doc/index.html.skip_spec_cache ./doc/index.html 23 npm install 24 npm run docs 25 mkdir -p output 26 cp -r doc output/api 27 npm install netlify-cli 28 ./node_modules/.bin/netlify deploy --prod