From 0161f6564c61cba354734ec336f579219ae0544e Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Thu, 18 Jan 2024 14:05:45 +0100 Subject: [PATCH] Added ci --- .gitea/workflows/pages.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/pages.yml create mode 100644 .gitignore diff --git a/.gitea/workflows/pages.yml b/.gitea/workflows/pages.yml new file mode 100644 index 0000000..cdfb2e4 --- /dev/null +++ b/.gitea/workflows/pages.yml @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1320f90 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +site