Skip to content

fix: dev pipe

fix: dev pipe #154

Workflow file for this run

name: Documentation stage pipeline
on:
push:
branches:
- stage
jobs:
deploy:
name: Development publising
runs-on: ubuntu-latest
steps:
- name: CHECKOUT project
uses: actions/checkout@v4
with:
repository: aziontech/docs
ref: stage
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: BUILD
run: |
export NODE_OPTIONS="--max-old-space-size=8120"
export PUBLIC_GITHUB_TOKEN="${{ secrets.GH_PACKAGES_SECRET }}"
npm run build-stage
- 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-stage
- name: UPDATING Google Cloud Storage files Cache-Control header
run: |
gcloud storage objects update -r gs://azdocs-stage --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 }}