Skip to content

Commit

Permalink
website
Browse files Browse the repository at this point in the history
  • Loading branch information
Devetak committed Jan 22, 2024
1 parent bf81aa2 commit 57d26ac
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Documentation

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: '1.10' # Set the Julia version as required
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
julia --project=docs/ docs/make.jl
cp -r docs/build/* docs/
- name: Commit and push
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add docs/
git commit -m "Update documentation" -a || echo "No changes to commit"
git push

0 comments on commit 57d26ac

Please sign in to comment.