Skip to content

CISA Releases Critical Infrastructure Related Advisories - 20240131001 #20

CISA Releases Critical Infrastructure Related Advisories - 20240131001

CISA Releases Critical Infrastructure Related Advisories - 20240131001 #20

# Simple workflow for deploying static content to GitHub Pages
name: Deploy TLP:CLEAR content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# 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: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: install mkdocs
run: pip install -r requirements.txt
- name: run mdformat
run: mdformat .
- name: build site
run: python -m mkdocs build --strict
- name: Commit and push changes
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git diff --quiet && git diff --staged --quiet || (git add . && git commit -m 'Format markdown files')
git push origin ${{ github.head_ref }}
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload main folder
path: 'site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1