Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .github/workflows/deploy_app_page.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,59 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy App Page

on:
# Runs on pushes targeting the default branch
push:
tags:
- 'v*' # Uruchamiaj tylko przy tagach np. v1.0.2
# Allows you to run this workflow manually from the Actions tab
- 'v*' # uruchamiaj tylko przy tagach np. v1.0.2
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

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
- name: Copy changelo and contribututing files

- name: Copy docs files
run: |
cp CHANGELOG.md docs/
cp CONTRIBUTING.md docs/
cp LICENSE docs/

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material
pip install -r requirements-docs.txt

- name: Build MkDocs site
run: mkdocs build --strict

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'site'
path: site

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ theme:
logo: img/icon-4.png
favicon: img/icon-4.png
features:
- navigation.instant
- navigation.instant.prefetch
- navigation.top
- navigation.sections
- navigation.expand
Expand Down
4 changes: 4 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdocs-material
mkdocs-static-i18n
mkdocs-minify-plugin
mkdocs-git-revision-date-localized-plugin