Skip to content

Commit

Permalink
feat: use pipenv for docs requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
tbckr committed Sep 28, 2023
1 parent df72417 commit b40b041
Show file tree
Hide file tree
Showing 5 changed files with 657 additions and 33 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright (c) 2023 Tim <tbckr>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# SPDX-License-Identifier: MIT

name: Github Release

on:
push:
tags:
- 'v*'
branches:
- main
- 'renovate/**'
paths:
- Pipfile
- Pipfile.lock

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
steps:
# Checkout repo
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
# Install task.dev
- uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Install Python
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pipenv'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Update requirements.txt for readthedocs
run: |
task setup:docs
task docs:requirements
- name: Commit updated requirements.txt
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: update requirements.txt for readthedocs"
commit_user_name: actions-user
commit_user_email: actions@github.com
commit_author: actions-user <actions@github.com>
13 changes: 13 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
mkdocs = "*"
mkdocs-material = "*"

[dev-packages]

[requires]
python_version = "3.10"
Loading

0 comments on commit b40b041

Please sign in to comment.