fix permissions

This commit is contained in:
Suzanne Soy 2023-11-27 16:13:37 +00:00
parent 081f8abf7b
commit ea747f31f1
2 changed files with 2 additions and 6 deletions

View File

@ -35,17 +35,13 @@ jobs:
- name: Make output dir
run: mkdir result/
- name: Go run
run: go run . out -f 1 -t 5
- name: Create content
run: ls -ld out; ls -lRa out; mkdir -p result; mkdir -p result/www; cp out/{styles.css,favicon.ico} result/www/; cp -r 'out/1/' result/www/1; find result/ -type d -print0 | xargs -0 chmod a+rx; find result/ -type f -print0 | xargs -0 chmod a+r; rm -f result/www/1/*; echo "<html><body><h1>hiaaa $(date)</h1></body></html>" > result/www/index.html
# run: ls -ld out; ls -lRa out; mkdir -p result; mkdir -p result/www; cp out/{styles.css,favicon.ico} result/www/; mkdir result/www/1; cp out/1/{index.html,info.json} result/www/1/; cp 'out/1/barrel_cropped_(1).jpg' result/www/1/; echo "<html><body><h1>hiaaa $(date)</h1></body></html>" > result/www/index.html; ls -lRa result
run: go run . result/www -f 1 -t 5
- name: create .ipfsignore
run: touch result/www/.ipfsignore
- name: create .nojekyll
run: touch result/www/.nojekyll
- name: create ipfs-add.sh
run: cp _ipfs-add.sh result/www/ipfs-add.sh; (cd result/www; find -type f > ../../.github/files-to-cache.lst)
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact

View File

@ -15,7 +15,7 @@ import (
)
const (
dirPermissions fs.FileMode = 0744
dirPermissions fs.FileMode = 0755
filePermissions fs.FileMode = 0666
)