EDU-2319-EN-URL-links-fix-How-to-check-your-WAF-mode (#162) #204
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation production pipeline | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Production publising | |
runs-on: self-hosted | |
container: | |
image: 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: 18 | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@aziontech' | |
always-auth: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_SECRET }} | |
- name: INSTALLING DEPENDENCIES | |
run: npm install | |
- name: CHECKER | |
run: npm run check | |
- name: BUILD | |
run: 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 cloudcannon.config.yml _cloudcannon | |
- 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 purge.js |