forked from ThummeTo/FMIFlux.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* set julia 1.10 for exmples * Added checks to Example action (ThummeTo#144) * Update Example.yml Added check for success of jupyter examples, fail action if example-building fails, prevents autocommit to examples branch * relaxed compats Update Project.toml --------- Co-authored-by: ThummeTo <[email protected]> * relaxed Diffeq version for testing * updated dependent actions to latest * Revert "updated dependent actions to latest" This reverts commit 871eade. * updated dependency action versions * fixes for artifact upload see breaking changes of actions/upload-artifact@v4 * changed from artifacts to branch for gathering due to changes in artifact behavior * added retry on merge conflict * fixes for example action * Update Example.yml * Update Example.yml * Update Project.toml * force pkg to update in CI * debug checks * makeshift versioning fix * fix for makeshift fix * Update Example.yml dont use "latest" in workflows * Update Eval.yml dont use "latest" in workflows * Update TestLTS.yml dont use "latest" in workflows * Update TestLatest.yml dont use "latest" in workflows --------- Co-authored-by: ThummeTo <[email protected]>
- Loading branch information
1 parent
f1db228
commit 322f028
Showing
6 changed files
with
173 additions
and
188 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
name: Documentation | ||
|
||
on: | ||
# manual trigger | ||
workflow_dispatch: | ||
# trigger from an other action | ||
repository_dispatch: | ||
types: [trigger-docu] | ||
|
||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' | ||
- 'README.md' | ||
- '.github/workflows/Documentation.yml' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check out repository" | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: '' | ||
|
||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1' # 1.6 | ||
arch: x64 | ||
|
||
- name: "Copy examples, readme" | ||
env: | ||
WORK_TREE: './docs/src/examples' | ||
SRC_BRANCH: 'origin/examples' | ||
SRC_FOLDER_PATH: 'examples' | ||
# copy the examples from the examples branch (.md, .svg) and copy the readme in the docs folder | ||
run: | | ||
git fetch | ||
git --work-tree=$WORK_TREE/.. checkout $SRC_BRANCH -- $SRC_FOLDER_PATH/jupyter-src/*.md $SRC_FOLDER_PATH/jupyter-src/*.svg $SRC_FOLDER_PATH/jupyter-src/*.gif $SRC_FOLDER_PATH/pluto-src/*.html | ||
mv $WORK_TREE/jupyter-src/* $WORK_TREE | ||
rm -r $WORK_TREE/jupyter-src | ||
cp ./README.md ./docs/src/index.md | ||
- name: "Install dependencies" | ||
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
|
||
- name: "Build and deploy" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | ||
run: julia --project=docs/ docs/make.jl | ||
name: Documentation | ||
|
||
on: | ||
# manual trigger | ||
workflow_dispatch: | ||
# trigger from an other action | ||
repository_dispatch: | ||
types: [trigger-docu] | ||
|
||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' | ||
- 'README.md' | ||
- '.github/workflows/Documentation.yml' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check out repository" | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: '' | ||
|
||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@latest | ||
with: | ||
version: '1' # 1.6 | ||
arch: x64 | ||
|
||
- name: "Copy examples, readme" | ||
env: | ||
WORK_TREE: './docs/src/examples' | ||
SRC_BRANCH: 'origin/examples' | ||
SRC_FOLDER_PATH: 'examples' | ||
# copy the examples from the examples branch (.md, .svg) and copy the readme in the docs folder | ||
run: | | ||
git fetch | ||
git --work-tree=$WORK_TREE/.. checkout $SRC_BRANCH -- $SRC_FOLDER_PATH/jupyter-src/*.md $SRC_FOLDER_PATH/jupyter-src/*.svg $SRC_FOLDER_PATH/jupyter-src/*.gif $SRC_FOLDER_PATH/pluto-src/*.html | ||
mv $WORK_TREE/jupyter-src/* $WORK_TREE | ||
rm -r $WORK_TREE/jupyter-src | ||
cp ./README.md ./docs/src/index.md | ||
- name: "Install dependencies" | ||
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.update()' | ||
|
||
- name: "Build and deploy" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | ||
run: julia --project=docs/ docs/make.jl |
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 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.