diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 1e003d33..b0387c0b 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -12,14 +12,7 @@ jobs: python-version: [ 3.11 ] steps: - - uses: actions/checkout@v3 - - - name: Checkout private tools - uses: actions/checkout@v3 - with: - repository: squidfunk/mkdocs-material-insiders - token: ${{ secrets.GH_TOKEN_MKDOCS }} - path: mkdocs-material-insider + - uses: actions/checkout@v4 - name: Some check on branch id: branch_check @@ -34,22 +27,28 @@ jobs: fi - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} architecture: x64 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: key: ${{ github.ref }} path: .cache - name: Install requirements + env: + GH_TOKEN: ${{ secrets.GH_TOKEN_MKDOCS }} run: | + # Git Clone with GH + gh repo clone squidfunk/mkdocs-material-insiders + + # Install sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev python3 -m pip install -U pip python3 -m pip install -r requirements.txt - python3 -m pip install -e mkdocs-material-insider + python3 -m pip install -e mkdocs-material-insiders - name: Deploy mkdocs 🚀 run: python3 -m mkdocs gh-deploy --force --remote-branch ${{ steps.branch_check.outputs.env_name }}