Skip to content

Commit 17f151c

Browse files
authored
Merge pull request #9 from niwciu/develop
Deploy workflow fix
2 parents e416fc1 + 9698f5b commit 17f151c

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,59 @@
1-
# Simple workflow for deploying static content to GitHub Pages
21
name: Deploy App Page
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
tags:
8-
- 'v*' # Uruchamiaj tylko przy tagach np. v1.0.2
9-
# Allows you to run this workflow manually from the Actions tab
6+
- 'v*' # uruchamiaj tylko przy tagach np. v1.0.2
107
workflow_dispatch:
118

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

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

2418
jobs:
25-
# Single deploy job since we're just deploying
2619
deploy:
2720
environment:
2821
name: github-pages
2922
url: ${{ steps.deployment.outputs.page_url }}
3023
runs-on: ubuntu-latest
24+
3125
steps:
3226
- name: Checkout
3327
uses: actions/checkout@v4
34-
- name: Copy changelo and contribututing files
28+
29+
- name: Copy docs files
3530
run: |
3631
cp CHANGELOG.md docs/
3732
cp CONTRIBUTING.md docs/
33+
cp LICENSE docs/
34+
3835
- name: Setup Python
3936
uses: actions/setup-python@v4
4037
with:
41-
python-version: '3.x'
38+
python-version: '3.12'
39+
cache: 'pip'
4240

4341
- name: Install dependencies
4442
run: |
4543
python -m pip install --upgrade pip
46-
pip install mkdocs-material
44+
pip install -r requirements-docs.txt
4745
4846
- name: Build MkDocs site
4947
run: mkdocs build --strict
5048

5149
- name: Setup Pages
5250
uses: actions/configure-pages@v5
51+
5352
- name: Upload artifact
5453
uses: actions/upload-pages-artifact@v3
5554
with:
56-
# Upload entire repository
57-
path: 'site'
55+
path: site
56+
5857
- name: Deploy to GitHub Pages
5958
id: deployment
60-
uses: actions/deploy-pages@v4
59+
uses: actions/deploy-pages@v4

mkdocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ theme:
2626
logo: img/icon-4.png
2727
favicon: img/icon-4.png
2828
features:
29-
- navigation.instant
29+
- navigation.instant.prefetch
3030
- navigation.top
3131
- navigation.sections
3232
- navigation.expand

requirements-docs.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
mkdocs-material
2+
mkdocs-static-i18n
3+
mkdocs-minify-plugin
4+
mkdocs-git-revision-date-localized-plugin

0 commit comments

Comments
 (0)