From 44c32d46f56b5f13a79eab84cb7f092c9271ff7b Mon Sep 17 00:00:00 2001 From: Roland Zimmermann <5895436+zimmerrol@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:52:06 +0100 Subject: [PATCH] Fix guide github action (#725) --- .github/workflows/guide.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/guide.yml b/.github/workflows/guide.yml index 97e68c14..5d3b3165 100644 --- a/.github/workflows/guide.yml +++ b/.github/workflows/guide.yml @@ -8,25 +8,25 @@ on: jobs: vuepress: runs-on: ubuntu-latest + options: --user root steps: - uses: actions/checkout@v2 - name: Install vuepress run: | - sudo apt update - sudo apt install npm - sudo npm install vuepress -g - sudo npm install vue-template-compiler + apt update + apt install yarn -y + yarn global add vuepress + yarn add vue-template-compiler - name: Build run: | - export NODE_OPTIONS=--openssl-legacy-provider - sudo vuepress build + vuepress build working-directory: ./guide - name: Push env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - sudo git init - sudo git add -A - sudo git commit -m 'deploy' - sudo git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/bethgelab/foolbox.git master:gh-pages + git init + git add -A + git commit -m 'deploy' + git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/bethgelab/foolbox.git master:gh-pages working-directory: ./guide/.vuepress/dist