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 402d41a commit 1abe30b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1abe30b

Please sign in to comment.