File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ name: Deploy to GitHub Pages
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ main ]
6+
7+ permissions :
8+ contents : write
69
710jobs :
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á
You can’t perform that action at this time.
0 commit comments