Skip to content

Commit 2a23530

Browse files
committed
fix: workflow
1 parent 96e6c71 commit 2a23530

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: write
69

710
jobs:
811
build-and-deploy:
@@ -13,11 +16,12 @@ jobs:
1316

1417
- name: Inject Drive Link
1518
run: |
16-
sed -i 's|{{DRIVE_LINK}}|${{ secrets.DRIVE_LINK }}|g' download/download.html
17-
19+
# Procura o placeholder e substitui pelo link secreto do Drive
20+
# Usamos o find para garantir que ele ache o download.html onde quer que esteja
21+
find . -name "*.html" -exec sed -i 's|{{DRIVE_LINK}}|${{ secrets.DRIVE_LINK }}|g' {} +
1822
1923
- name: Deploy
2024
uses: JamesIves/github-pages-deploy-action@v4
2125
with:
2226
folder: .
23-
branch: gh-pages
27+
branch: gh-pages # O site "processado" vai para cá

0 commit comments

Comments
 (0)