Skip to content

Commit

Permalink
Refactor GitHub Actions workflow to use latest version of actions/che…
Browse files Browse the repository at this point in the history
…ckout and actions/setup-python
  • Loading branch information
endersonmenezes committed Oct 1, 2024
1 parent 172b00f commit 44dbfa4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}
Expand Down

0 comments on commit 44dbfa4

Please sign in to comment.