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 725f203 commit 402d41a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- run: |
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
- run: pnpm i && pnpm docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
Expand Down

0 comments on commit 402d41a

Please sign in to comment.