1- # Simple workflow for deploying static content to GitHub Pages
21name : Deploy App Page
32
43on :
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
139permissions :
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.
2014concurrency :
2115 group : " pages"
2216 cancel-in-progress : false
2317
2418jobs :
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
0 commit comments