Skip to content

build(deps-dev): bump postcss-cli from 10.1.0 to 11.0.0 in /docs #70

build(deps-dev): bump postcss-cli from 10.1.0 to 11.0.0 in /docs

build(deps-dev): bump postcss-cli from 10.1.0 to 11.0.0 in /docs #70

Workflow file for this run

name: github pages
on:
# Runs on pushes targeting the default branch
push:
branches: [main]
paths:
- 'docs/**'
- 'internal/scanners/**'
- 'internal/aprl/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Default to bash
defaults:
run:
shell: bash
jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.119.0
GOVER: '1.21'
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
- name: Set up Go ${{ env.GOVER }}
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GOVER }}
- name: Create rules.txt file
run: |
{ echo -n '\'; go run ./cmd/main.go rules; } > ./docs/static/rules.txt
- name: Create types.txt file
run: |
{ echo -n '\'; go run ./cmd/main.go types; } > ./docs/static/types.txt
- name: Setup Node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: '18'
- name: Cache dependencies
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Setup Pages
id: pages
uses: actions/configure-pages@9a141972ca62e4def3a31137a5a086ba5c58572a # v1.2.1
- name: Build with Hugo
run: |
npm install -D autoprefixer
npm install -D postcss-cli
npm install -D postcss
npm install
hugo --gc --minify --cleanDestinationDir --baseURL https://azure.github.io/azqr/
working-directory: ./docs
- name: Upload artifact
uses: actions/upload-pages-artifact@84bb4cd4b733d5c320c9c9cfbc354937524f4d64 # v1.0.10
with:
path: ./docs/public
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@f27bcc15848fdcdcc02f01754eb838e44bcf389b # v1.2.9