Skip to content

Remove update section cli (#415) #427

Remove update section cli (#415)

Remove update section cli (#415) #427

Workflow file for this run

name: Documentation production pipeline
on:
push:
branches:
- main
jobs:
deploy:
name: Production publising
runs-on: ubuntu-latest
steps:
- name: CHECKOUT project
uses: actions/checkout@v3
with:
repository: aziontech/docs
ref: main
path: '.'
clean: true
fetch-depth: '0'
lfs: 'false'
- name: SETTING Node and Github Packages
uses: actions/setup-node@v3
with:
node-version: 20.6.1
- name: INSTALLING DEPENDENCIES
run: npm install
- name: CHECKER MEMORY
run: npm run check-memory
- name: CHECKER
run: npm run check
- name: BUILD
run: export NODE_OPTIONS="--max-old-space-size=5120" && npm run build
- name: PREPARE TO DEPLOYMENT
run: rm -rf .eslintignore .eslintrc.js .prettierignore .prettierrc .nvmrc .npmrc pnpm-lock.yaml .astro .github node_modules src .editorconfig .gitignore astro.config.ts LICENSE package-lock.json package.json README.md tsconfig.json public plugins scripts integrations doc-bkp cmd.txt
- name: PREPARE DIST FOLDER
run: mv dist/* ./ && rm -rf dist; ls -la;
- name: DEPLOYMENT
uses: patrickwyler/[email protected]
with:
secrets: ${{ secrets.GCP_EXP_ENG }}
bucket: azdocs
- name: PURGE Documentation
run: npm install axios && node cicd/cdn-purge.js basic_token=${{ secrets.MKT_BASIC_TOKEN }}
- name: UPDATE Algolia data
run: npm install algoliasearch stream-json && node cicd/algolia-reindex.js app=${{ secrets.ALGOLIA_CONF_APP }} api=${{ secrets.ALGOLIA_CONF_API }}