Added ci
This commit is contained in:
parent
06b7b25717
commit
0161f6564c
31
.gitea/workflows/pages.yml
Normal file
31
.gitea/workflows/pages.yml
Normal file
@ -0,0 +1,31 @@
|
||||
name: Continuous Integration
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CI_COMMIT_MESSAGE: Continuous Integration update docs
|
||||
CI_COMMIT_AUTHOR: Continuous Integration
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: pip install mkdocs-material
|
||||
|
||||
- run: mkdocs build
|
||||
|
||||
# Commit and push all changed files.
|
||||
- name: GIT Commit Build Artifacts (coverage, dist, devdist, docs)
|
||||
run: |
|
||||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
|
||||
git config --global user.email "username@users.noreply.github.com"
|
||||
git add site/
|
||||
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
|
||||
git branch -M pages
|
||||
git push -u origin pages --force
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
site
|
Loading…
Reference in New Issue
Block a user