This action generates and publishes the rust docs in github pages
- name: Publish docs
uses: hoprnet/hopr-workflows/actions/publish-rust-docs@publish-rust-docs-v1
with:
source_repo: ${{ github.repository }}
source_branch: ${{ github.event.pull_request.head.ref || github.ref }}
publish: true
cachix_cache_name: my_nix_cache_name
cachix_auth_token: ${{ secrets.CACHIX_AUTH_TOKEN }}
command: `nix build -L .#docs`- Requires the repository to use Nix environment. Requires the action Setup Nix to be invoked previously.
source_repo: Name of the source code repositorysource_branch: Name of the branch to checkoutpublish: Determines if the action should finishing publishing the docs.cachix_cache_name: Cachix cache name. Default value. Github repository namecachix_auth_token: Cachix authentication tokencommand: Nix command to run the docs. Default valuenix build -L .#docsgithub_token: Github token used to deploy in Github Pages
None