Skip to content

Bump codecov/codecov-action from 4 to 5 #34

Bump codecov/codecov-action from 4 to 5

Bump codecov/codecov-action from 4 to 5 #34

Workflow file for this run

name: Documenter
on:
push:
tags: [v*]
pull_request:
jobs:
Documenter:
permissions:
contents: write
statuses: write
actions: write
pull-requests: write
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/add-julia-registry@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
registry: bhftbootcamp/Green
- uses: julia-actions/setup-julia@latest
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path = pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ github.token }}
run: julia --project=docs/ docs/make.jl
- name: Make comment with preview link
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened'}}
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: ':blue_book: A preview of the documentation will be [here](${{env.preview_url}}) soon'
})
env:
preview_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/previews/PR${{ github.event.number }}/