-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from darsnack/mobilenet-v1
- Loading branch information
Showing
18 changed files
with
289 additions
and
133 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: PublishStable | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
name: "Publish Documentation (stable)" | ||
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.6' | ||
- 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("stable")' | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
git add . | ||
git commit -m "(stable) Built by Publish.jl." | ||
git push |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ | |
# manifests | ||
docs/Manifest.toml | ||
Manifest.toml | ||
|
||
# docs theme | ||
_flux-theme |
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
using Pkg | ||
|
||
Pkg.develop(path = "..") | ||
# this is needed since Publish v0.9 breaks our theming hack | ||
Pkg.pin(name = "Publish", version = "0.8") | ||
|
||
using Publish | ||
using Pkg.Artifacts | ||
using Artifacts, LazyArtifacts | ||
using Metalhead | ||
|
||
# override default theme | ||
Publish.Themes.default() = artifact"flux-theme" | ||
cp(artifact"flux-theme", "../_flux-theme"; force = true) | ||
|
||
p = Publish.Project(Metalhead) | ||
|
||
# needed to prevent error when overwriting | ||
rm("dev", recursive = true, force = true) | ||
rm(p.env["version"], recursive = true, force = true) | ||
|
||
# build documentation | ||
deploy(Metalhead; root = "/Metalhead.jl", force = true, label = "dev") | ||
function build_and_deploy(label) | ||
rm(label; recursive = true, force = true) | ||
deploy(Metalhead; root = "/Metalhead.jl", label = label) | ||
end |
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
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
Oops, something went wrong.