From 8fe2d1f9d76b484855d82e9a482dc82ea2ef5f92 Mon Sep 17 00:00:00 2001 From: Junghwan Park <9343724+9bow@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:53:32 +0900 Subject: [PATCH] fix: build action workflow --- .github/workflows/gh-deploy.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 19f1a4d..5a64dfc 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -7,22 +7,17 @@ on: jobs: build: - + name: Build & Deploy docs runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Deploy using mkdocs gh-deploy - run: | - git config --global user.name "GitHub Action" - git config --global user.email "reserve.dev@gmail.com" - git remote set-url origin https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@github.com/$GITHUB_REPOSITORY - mkdocs gh-deploy -c -m "Rebuild" + - name: Checkout latest codes + uses: actions/checkout@v2 + + # refer: https://github.com/marketplace/actions/deploy-mkdocs + - name: Build & Deploy using mkdocs-deploy Action + uses: mhausenblas/mkdocs-deploy-gh-pages@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CONFIG_FILE: mkdocs.yml + EXTRA_PACKAGES: build-base + REQUIREMENTS: requirements.txt