From 57d26ac49aab888d81d5db1a12dbfccf07be4c19 Mon Sep 17 00:00:00 2001 From: Mitja Devetak Date: Mon, 22 Jan 2024 17:24:03 +0100 Subject: [PATCH] website --- .github/workflows/deploy_docs.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy_docs.yml diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml new file mode 100644 index 0000000..89608df --- /dev/null +++ b/.github/workflows/deploy_docs.yml @@ -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 "action@github.com" + git config --local user.name "GitHub Action" + git add docs/ + git commit -m "Update documentation" -a || echo "No changes to commit" + git push +