Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Documentation

on:
on:
create:
tags: '*'
pull_request:
workflow_dispatch:

jobs:
build:
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- 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: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: |
julia --project=docs/ docs/make.jl
mv ./docs/build julia
zip -r doc.zip julia
- name: Release
id: doc
uses: ncipollo/release-action@v1
with:
name: Documentation
commit: main
artifacts: doc.zip
allowUpdates: true
artifactErrorsFailBuild: true
draft: false
prerelease: false
- name: Post-release
run: |
echo "id: ${{ steps.release.outputs.id }}"
echo "HTML url: ${{ steps.release.outputs.html_url }}"
Loading