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
1fd0f1b
commit e0cbdb6
Showing
1 changed file
with
2 additions
and
2 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 |
---|---|---|
|
@@ -46,13 +46,13 @@ jobs: | |
run: poetry run mike deploy -b gh-pages dev --push | ||
|
||
# deploy github pages (release) | ||
- if: "github.ref == startsWith(github.ref, 'refs/tags/')" | ||
- if: 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/')" | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: poetry run mike deploy -b gh-pages ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --push |