Skip to content

Commit

Permalink
Update and rename deploy.yml to docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek authored Feb 19, 2024
1 parent 8a92c99 commit bb6da51
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/deploy.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy docs
on:
push:
branches: ["main"]
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'Pipfile'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: python -m pip install build
- run: make install-poetry
- run: make install-env
- run: poetry run mkdocs build
- uses: actions/upload-pages-artifact@v3
with:
path: 'site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit bb6da51

Please sign in to comment.