Skip to content

Commit

Permalink
disbale fonts in docs, add GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
kringkaste committed Nov 27, 2023
1 parent a4326fb commit 213c64f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy

on:
push:
branches:
- 'master'

permissions:
id-token: write
contents: read

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Build mkdocs
run: |
pip install mkdocs-material mkdocs-material-extensions
mkdocs -q build
- name: Configure AWS Credentials with OIDC
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::167422901596:role/gha_nocontent
aws-region: "eu-central-1"

- name: Upload docs
run: |
aws s3 sync --delete .docs/ s3://nocontent.xyz/
- name: Invalidate Cloudfront
run: aws cloudfront create-invalidation --distribution-id "E1TX7G3VGQGAF4" --path "/*"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
nocontent
.direnv
.docs
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ extra_css:
- stylesheets/codemonauts.css
theme:
name: material
font: false
logo: logo.svg
favicon: favicon.png
icon:
Expand Down

0 comments on commit 213c64f

Please sign in to comment.