Skip to content

[EDU-5874] refactor: ajuste de terminologia (#1413) #1338

[EDU-5874] refactor: ajuste de terminologia (#1413)

[EDU-5874] refactor: ajuste de terminologia (#1413) #1338

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@v4
with:
repository: aziontech/docs
ref: main
path: '.'
clean: true
fetch-depth: '0'
lfs: 'false'
- name: SETTING Node and Github Packages
uses: actions/setup-node@v4
with:
node-version: 20.13.1
- name: INSTALLING DEPENDENCIES
run: |
npm install
- name: CHECKER MEMORY
run: |
npm run check-memory
- name: BUILD
run: |
export NODE_OPTIONS="--max-old-space-size=8120"
export PUBLIC_GITHUB_TOKEN="${{ secrets.GH_PACKAGES_SECRET }}"
npm run build-production
- name: UPDATE Algolia data
run: |
npm install algoliasearch stream-json
node cicd/algolia-reindex.cjs app=${{ secrets.ALGOLIA_CONF_APP }} api=${{ secrets.ALGOLIA_CONF_API }}
- name: 'AUTH Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_EXP_ENG }}
- uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'
- name: PUBLISHING
run: |
gcloud storage rsync -r dist gs://azdocs
- name: UPDATING Google Cloud Storage files Cache-Control header
run: |
gcloud storage objects update -r gs://azdocs --cache-control="public, max-age=120"
- name: PURGE Edge Cache
run: |
npm install axios
node ./cicd/cdn-purge.js basic_token=${{ secrets.MKT_BASE64_TOKEN }}