diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a7ad100..e922b87 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,11 +19,12 @@ jobs: with: version: 9 - run: | + sudo apt install jq curl -y rm vitepress/plugins.json wget https://raw.githubusercontent.com/pot-app/pot-app-plugin-list/main/list.json -O vitepress/plugins.json ver=$(curl -H "Authorization: Bearer ${ secrets.GITHUB_TOKEN }" -s https://api.github.com/repos/pot-app/pot-desktop/releases/latest | jq '.tag_name'|tr -d 'v"') - sed -i "s/const version =.*/const version = ${ver}/g" vitepress/download.md - sed -i "s/const version =.*/const version = ${ver}/g" vitepress/en/download.md + sed -i "s/const version =.*/const version = ${ver}/" vitepress/download.md + sed -i "s/const version =.*/const version = ${ver}/" vitepress/en/download.md - run: pnpm i && pnpm docs:build - name: Deploy uses: peaceiris/actions-gh-pages@v4