From 172b00fbeeecde71f8daa57cd8049f918f5ccda4 Mon Sep 17 00:00:00 2001 From: Enderson Menezes Date: Tue, 1 Oct 2024 11:37:02 -0300 Subject: [PATCH 1/4] Refactor GitHub Actions workflow to use latest version of actions/checkout and actions/setup-python --- .github/workflows/gh-deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 1e003d33..7dc0bd78 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -12,10 +12,10 @@ jobs: python-version: [ 3.11 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Checkout private tools - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: squidfunk/mkdocs-material-insiders token: ${{ secrets.GH_TOKEN_MKDOCS }} @@ -34,12 +34,12 @@ 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 From 44dbfa41127ac4a6447ffd321c86327bd9dfe64a Mon Sep 17 00:00:00 2001 From: Enderson Menezes Date: Tue, 1 Oct 2024 14:35:25 -0300 Subject: [PATCH 2/4] Refactor GitHub Actions workflow to use latest version of actions/checkout and actions/setup-python --- .github/workflows/gh-deploy.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 7dc0bd78..13d1bfbc 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -14,13 +14,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Checkout private tools - uses: actions/checkout@v4 - with: - repository: squidfunk/mkdocs-material-insiders - token: ${{ secrets.GH_TOKEN_MKDOCS }} - path: mkdocs-material-insider - - name: Some check on branch id: branch_check run: | @@ -45,11 +38,17 @@ jobs: path: .cache - name: Install requirements + env: + GH_TOKEN: ${{ secrets.GH_TOKEN_MKDOCS }} run: | + # Git Config SSH -> HTTPS + git config --global url."https://".insteadOf git:// + + # 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 git+ssh://git@github.com/squidfunk/mkdocs-material-insiders.git - name: Deploy mkdocs 🚀 run: python3 -m mkdocs gh-deploy --force --remote-branch ${{ steps.branch_check.outputs.env_name }} From 12893ea99ff97f121de6cf05be448546f483db4e Mon Sep 17 00:00:00 2001 From: Enderson Menezes Date: Tue, 1 Oct 2024 14:37:26 -0300 Subject: [PATCH 3/4] Refactor GitHub Actions workflow to use latest version of actions/checkout and actions/setup-python --- .github/workflows/gh-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 13d1bfbc..cb4d5d65 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -41,14 +41,14 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN_MKDOCS }} run: | - # Git Config SSH -> HTTPS - git config --global url."https://".insteadOf git:// + # Git Clone with GH + gh 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 git+ssh://git@github.com/squidfunk/mkdocs-material-insiders.git + 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 }} From 4e69ae0fba4e64cfa60bc224ee030d5cc0e340a5 Mon Sep 17 00:00:00 2001 From: Enderson Menezes Date: Tue, 1 Oct 2024 14:39:20 -0300 Subject: [PATCH 4/4] Refactor GitHub Actions workflow to use "gh repo clone" instead of "gh clone" --- .github/workflows/gh-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index cb4d5d65..b0387c0b 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -42,7 +42,7 @@ jobs: GH_TOKEN: ${{ secrets.GH_TOKEN_MKDOCS }} run: | # Git Clone with GH - gh clone squidfunk/mkdocs-material-insiders + 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