clean up and cache artifacts
This commit is contained in:
parent
8f832e72f2
commit
af77167142
32
.github/workflows/docs.yml
vendored
32
.github/workflows/docs.yml
vendored
@ -5,11 +5,23 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build_docs:
|
Build_docs:
|
||||||
# if: "!contains(github.event.head_commit.message, '[skip docs]')"
|
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: JuliaPlots/PlotDocs.jl
|
||||||
- uses: julia-actions/setup-julia@v1
|
- uses: julia-actions/setup-julia@v1
|
||||||
|
- name: Cache artifacts
|
||||||
|
uses: actions/cache@v1
|
||||||
|
env:
|
||||||
|
cache-name: cache-artifacts
|
||||||
|
with:
|
||||||
|
path: ~/.julia/artifacts
|
||||||
|
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-test-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-test-
|
||||||
|
${{ runner.os }}-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
@ -28,20 +40,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PYTHON: ""
|
PYTHON: ""
|
||||||
run: |
|
run: |
|
||||||
echo $(pwd)
|
echo $(GITHUB_REF)
|
||||||
cd ..
|
xvfb-run julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.develop(PackageSpec(name="Plots", rev=ENV["GITHUB_REF"]))); Pkg.instantiate()'
|
||||||
echo $(pwd)
|
|
||||||
git clone https://github.com/JuliaPlots/PlotDocs.jl.git
|
|
||||||
echo $(ls)
|
|
||||||
cd PlotDocs.jl
|
|
||||||
echo $(pwd)
|
|
||||||
xvfb-run julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.develop(PackageSpec(path=joinpath(pwd(), "..", "Plots.jl"))); Pkg.instantiate()'
|
|
||||||
xvfb-run julia --color=yes --project=docs/ -e 'withenv("GITHUB_REPOSITORY" => "JuliaPlots/PlotDocs.jl", "GITHUB_REF" => "master") do; include("docs/make.jl"); end'
|
xvfb-run julia --color=yes --project=docs/ -e 'withenv("GITHUB_REPOSITORY" => "JuliaPlots/PlotDocs.jl", "GITHUB_REF" => "master") do; include("docs/make.jl"); end'
|
||||||
|
|
||||||
|
|
||||||
# Skip:
|
|
||||||
# if: "contains(github.event.head_commit.message, '[skip docs]')"
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - name: Skip Build docs 🚫
|
|
||||||
# run: echo skip docs
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user