From 0b7b5556a7ff637ff0a1904add0073b363d17648 Mon Sep 17 00:00:00 2001 From: arnaldojr <arnaldo_viana@yahoo.com.br> Date: Thu, 17 Oct 2024 23:46:07 -0300 Subject: [PATCH] up --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a25781d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: ci +on: + push: + branches: + - main + +# Environment +env: + CI: true + PYTHON_VERSION: 3.x + +# Jobs to run +jobs: + + # Build and deploy documentation site + deploy: + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + steps: + + # Checkout source form GitHub + - uses: actions/checkout@v2 + + # Install Python runtime and dependencies + - uses: actions/setup-python@v1 + with: + python-version: ${{ env.PYTHON_VERSION }} + + # pip + - run: | + pip install -r requirements.txt + pip install mkdocs-minify-plugin>=0.2 + + # deploy + - run: | + mkdocs gh-deploy --force + mkdocs --version \ No newline at end of file