Merge pull request #49 from FluxML/compathelper/new_version/2023-07-3… #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://github.com/MichaelHatherly/Publish.jl | |
name: Publish | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
publish: | |
name: "Publish Documentation (dev)" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: '1' | |
- name: Install dependencies | |
run: | | |
julia --color=yes --project=. -e 'using Pkg; Pkg.instantiate()' | |
- name: Build and deploy | |
run: | | |
cd gh-pages | |
julia --color=yes --project=../docs -e "using Pkg; Pkg.instantiate()" | |
julia --color=yes --project=../docs -e 'include("../docs/make.jl"); build_and_deploy("dev")' | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "(dev) Built by Publish.jl." | |
git push |