Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
ci: corrige caminho do latest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ferreira-tb committed Jun 4, 2023
1 parent 06d8130 commit c40b490
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: docs
on:
push:
branches: [main]
release:
types: [published]

jobs:
docs:
Expand Down
2 changes: 1 addition & 1 deletion scripts/actions/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ await webhookClient.send({ embeds: [embed] });

// Atualiza o arquivo latest.json.
const docsDir = path.resolve(__dirname, '../../docs');
const latestJson = path.join(docsDir, 'api/latest.json');
const latestJson = path.join(docsDir, '.vuepress/public/latest.json');
await fs.writeFile(latestJson, JSON.stringify(latest, null, 4), 'utf-8');

// Atualiza o botão de download no site.
Expand Down

0 comments on commit c40b490

Please sign in to comment.