Skip to content

Commit

Permalink
Merge pull request #6 from gismo/doc
Browse files Browse the repository at this point in the history
Documentation CI
  • Loading branch information
filiatra authored Dec 14, 2024
2 parents 73ee90c + 0ceb693 commit c55a617
Showing 1 changed file with 48 additions and 0 deletions.
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 }}"

0 comments on commit c55a617

Please sign in to comment.