Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon authored Jul 21, 2024
1 parent c57101a commit 391f5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
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}/" vitepress/download.md
sed -i "s/const version =.*/const version = ${ver}/" 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
Expand Down

0 comments on commit 391f5f3

Please sign in to comment.