Igor commited on
Commit
28bf5bc
·
unverified ·
1 Parent(s): 3951081

CI: Refactor GitHub Pages deployment to use a public folder and update action versions

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy_pages.yml +10 -3
.github/workflows/deploy_pages.yml CHANGED
@@ -24,15 +24,22 @@ jobs:
24
  - name: Checkout
25
  uses: actions/checkout@v4
26
 
 
 
 
 
 
 
 
 
27
  - name: Setup Pages
28
  uses: actions/configure-pages@v5
29
 
30
  - name: Upload artifact
31
  uses: actions/upload-pages-artifact@v3
32
  with:
33
- # Upload the entire repository so relative paths work
34
- path: '.'
35
 
36
  - name: Deploy to GitHub Pages
37
  id: deployment
38
- uses: actions/deploy-pages@v4
 
24
  - name: Checkout
25
  uses: actions/checkout@v4
26
 
27
+ - name: Prepare Files
28
+ run: |
29
+ mkdir public
30
+ cp web/index.html public/
31
+ cp crypto.py steg.py stealth.py public/
32
+ # Fix relative paths in index.html for the flat structure
33
+ sed -i 's/\.\.\//\.\//g' public/index.html
34
+
35
  - name: Setup Pages
36
  uses: actions/configure-pages@v5
37
 
38
  - name: Upload artifact
39
  uses: actions/upload-pages-artifact@v3
40
  with:
41
+ path: 'public'
 
42
 
43
  - name: Deploy to GitHub Pages
44
  id: deployment
45
+ uses: actions/deploy-pages@v4