From 0814553642ac6e4a3a3477091d3e6f54f33dbd32 Mon Sep 17 00:00:00 2001 From: Mohamed Firas <62911996+Fir121@users.noreply.github.com> Date: Sat, 20 Apr 2024 01:45:31 +0400 Subject: [PATCH] new ci --- .github/workflows/ci.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bff3cc4..3c80131 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,24 @@ on: push: branches: - main +permissions: + contents: write jobs: - deploy: + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout 🛎️ + uses: actions/checkout@v4 - uses: actions/setup-python@v3 + + - name: Install and Build 🔧 + run: | + pip install -r requirements.txt + mkdocs build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 with: - python-version: 3.x - - run: pip install -r requirements.txt - - run: mkdocs gh-deploy + folder: build + force: false \ No newline at end of file