Skip to content

Conversation

@rusty1968
Copy link
Collaborator

  • Add explicit permissions for GitHub Pages deployment:

    • contents: read - for repository access
    • pages: write - for Pages deployment
    • id-token: write - for secure authentication
  • Replace deprecated peaceiris/actions-gh-pages with modern GitHub Actions:

    • actions/configure-pages@v4 for Pages setup
    • actions/upload-pages-artifact@v3 for artifact upload
    • actions/deploy-pages@v4 for deployment
  • Add github-pages environment configuration for proper deployment tracking

This resolves the "Permission denied" error when deploying documentation
to GitHub Pages. The new approach uses GitHub's built-in authentication
instead of requiring manual token configuration.

Fixes: remote: Permission to OpenPRoT/openprot.git denied to github-actions[bot]

rusty1968 and others added 3 commits July 7, 2025 15:36
- Implement cargo-xtask automation with build, test, docs, and dist tasks
- Add GitHub Actions for CI, release, documentation, and nightly builds
- Configure rust-toolchain.toml with nightly and multi-target support
- Include automated mdbook documentation generation
- Add Cargo.lock consistency checking
- Support multi-platform builds and cross-compilation
…issions

- Add explicit permissions for GitHub Pages deployment:
  - contents: read - for repository access
  - pages: write - for Pages deployment
  - id-token: write - for secure authentication

- Replace deprecated peaceiris/actions-gh-pages with modern GitHub Actions:
  - actions/configure-pages@v4 for Pages setup
  - actions/upload-pages-artifact@v3 for artifact upload
  - actions/deploy-pages@v4 for deployment

- Add github-pages environment configuration for proper deployment tracking

This resolves the "Permission denied" error when deploying documentation
to GitHub Pages. The new approach uses GitHub's built-in authentication
instead of requiring manual token configuration.

Fixes: remote: Permission to OpenPRoT/openprot.git denied to github-actions[bot]
@rusty1968 rusty1968 merged commit ff3fea6 into OpenPRoT:main Jul 7, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant