Skip to content

Commit cc49757

Browse files
committed
Update github action for doc job
1 parent 7fafe8c commit cc49757

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: CI
22
on:
33
pull_request:
4-
branches:
5-
- main
64
push:
7-
branches:
8-
- main
9-
tags: '*'
5+
branches: [main]
6+
tags: ['*']
107
jobs:
118
test:
129
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -53,20 +50,8 @@ jobs:
5350
runs-on: ubuntu-latest
5451
steps:
5552
- uses: actions/checkout@v2
56-
- uses: julia-actions/setup-julia@v1
57-
with:
58-
version: '1'
59-
- run: |
60-
julia --project=docs -e '
61-
using Pkg
62-
Pkg.develop(PackageSpec(path=pwd()))
63-
Pkg.instantiate()'
64-
- run: |
65-
julia --project=docs -e '
66-
using Documenter: doctest
67-
using StructTypes
68-
doctest(StructTypes)'
69-
- run: julia --project=docs docs/make.jl
53+
- uses: julia-actions/julia-buildpkg@latest
54+
- uses: julia-actions/julia-docdeploy@latest
7055
env:
7156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7257
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)