Skip to content

chore(deps): bump @babel/traverse from 7.22.10 to 7.23.2 in /docs #49

chore(deps): bump @babel/traverse from 7.22.10 to 7.23.2 in /docs

chore(deps): bump @babel/traverse from 7.22.10 to 7.23.2 in /docs #49

Workflow file for this run

name: Docs
on:
push:
branches:
- main
paths:
- docs/**
pull_request:
branches:
- main
paths:
- docs/**
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: '18.17'
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run build
- uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4
if: github.ref == 'refs/heads/main'
with:
aws-access-key-id: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: Deploy
if: github.ref == 'refs/heads/main'
run: >-
aws s3 sync build s3://glasskube/docs/
--cache-control "max-age=60, public"
--acl=public-read
- name: Invalidate cache
if: github.ref == 'refs/heads/main'
run: >-
aws cloudfront create-invalidation
--distribution-id E255221I2BC85
--invalidation-batch "Paths={Quantity='1' ,Items=['/docs/*']},CallerReference=DOCS_$GITHUB_RUN_ID"