diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 2b88a93..cf9452b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -24,13 +24,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Install dependencies and build docs run: | yarn install yarn rust:doc - - name: Setup Pages - uses: actions/configure-pages@v5 + - name: Force correct file permissions + run: | + chmod -c +rX "packages/target/doc/.lock" & + chmod -c -R +rX "packages/target/doc" | + while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/package.json b/package.json index b1437e8..c759132 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "js:publish-browser": "npm run core:build-browser && npm run js:prepublish && node ./scripts/publish-helper -browser && cd publish && npm publish --access public", "js:publish-asm": "npm run core:build-asm && npm run js:prepublish && node ./scripts/publish-helper -asmjs && cd publish && npm publish --access public", "js:ts-json-gen": "cd packages/sidan-csl-rs/json-gen && cargo +stable run && cd ../.. && node ./scripts/run-json2ts.js && node ./scripts/json-ts-types.js", - "rust:doc": "cargo doc --workspace --manifest-path packages/Cargo.toml --no-deps" + "rust:doc": "RUSTDOCFLAGS=\"--cfg docsrs\" cargo doc --workspace --manifest-path packages/Cargo.toml --no-deps" }, "husky": { "hooks": {