generated from dataforgoodfr/d4g-project-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0881103
commit 2646bac
Showing
4 changed files
with
84 additions
and
8 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 |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
push: | ||
branches: | ||
- main | ||
tags: | ||
- '**' | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -38,6 +40,19 @@ jobs: | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --only docs | ||
|
||
# deploy github pages | ||
- name: Deploy GitHub Pages | ||
run: poetry run mkdocs gh-deploy --force | ||
# deploy github pages (dev) | ||
- name: Deploy GitHub Pages (dev) | ||
if: "github.ref == 'refs/heads/main'" | ||
run: poetry run mike deploy -b gh-pages dev --push | ||
|
||
# deploy github pages (release) | ||
- if: "github.ref == startsWith(github.ref, 'refs/tags/')" | ||
id: check-version | ||
uses: samuelcolvin/[email protected] | ||
with: | ||
version_file_path: 'ecologits/__init__.py' | ||
skip_env_check: true | ||
|
||
- name: Deploy GitHub Pages (release) | ||
if: "github.ref == startsWith(github.ref, 'refs/tags/')" | ||
run: poetry run mike deploy -b gh-pages ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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