Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julia-actions/julia-docdeploy
https://github.com/julia-actions/julia-docdeploy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/julia-actions/julia-docdeploy
- Owner: julia-actions
- License: mit
- Created: 2019-11-16T20:35:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T11:54:00.000Z (2 months ago)
- Last Synced: 2024-10-31T10:38:11.969Z (about 2 months ago)
- Size: 125 KB
- Stars: 19
- Watchers: 5
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# julia-docdeploy
## Usage
```yaml
name: Documenter
on:
push:
branches: [main, master]
tags: [v*]
pull_request:jobs:
Documenter:
permissions:
contents: write
statuses: write
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1' # replace this with whatever version you need
show-versioninfo: true # this causes versioninfo to be printed to the action log
- uses: julia-actions/cache@v2 # cache using https://github.com/julia-actions/cache
- uses: julia-actions/julia-buildpkg@v1 # if package requires Pkg.build()
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```### Prefixing the Julia command
In some packages, you may want to prefix the `julia` command with another command, e.g. for running tests of certain graphical libraries with `xvfb-run`.
In that case, you can add an input called `prefix` containing the command that will be inserted to your workflow:```yaml
- uses: julia-actions/julia-docdeploy@v1
with:
prefix: xvfb-run
```### Customizing installation of package into docs environment
In some packages, you may want to install the package yourself into the docs environment. For example, if the package is in a subdirectory (but the docs environment is still top-level). In this case, you can pass `install-package: false`.
```yaml
- uses: julia-actions/julia-docdeploy@v1
with:
install-package: false
```### Setting terminal width
For some doctests, the default terminal width of GitHub Runners is too narrow.
To change this, set the `COLUMNS` environment variable.```yaml
- uses: julia-actions/julia-docdeploy@v1
env:
COLUMNS: '200'
```