Skip to content

Commit

Permalink
Update actions to v3 to use node.js v16 and master branch (#58)
Browse files Browse the repository at this point in the history
* Update actions to use node.jl v16

Let's also see if the documentation builds correctly in this PR

* Avoid rebuilding docs on readme changes (#60)

This saves CO2 by preventing readme changes from rebuilding docs.

* Use `master` branch

This is probably why docs did not deploy.  Doh!

Co-authored-by: Jeff Fessler <[email protected]>
  • Loading branch information
jishnub and JeffFessler authored Oct 23, 2022
1 parent baf59e4 commit d620db0
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@ name: Documentation

on:
pull_request:
paths-ignore:
- 'README.md'
push:
paths-ignore:
- 'README.md'
branches:
- 'main'
- 'master'
- 'release-'
tags: '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: '1.6'
- name: Cache artifacts
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
Expand All @@ -30,10 +34,10 @@ jobs:
- name: Install dependencies
run: |
julia --project=docs/ -e '
ENV["JULIA_PKG_SERVER"] = ""
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
ENV["JULIA_PKG_SERVER"] = ""
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- name: BuildAndDeploy
env:
# https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#Authentication:-GITHUB_TOKEN
Expand Down

0 comments on commit d620db0

Please sign in to comment.