Skip to content
Snippets Groups Projects
Commit 4000213b authored by Rasmus Sode Lund's avatar Rasmus Sode Lund :zap:
Browse files

Updated image used to deploy the website

parent 91efa31a
No related branches found
No related tags found
1 merge request!221Updated image used to deploy the website
Pipeline #45706 failed
...@@ -35,6 +35,7 @@ test: ...@@ -35,6 +35,7 @@ test:
pages: # "pages" is a job specifically for GitLab pages [1] pages: # "pages" is a job specifically for GitLab pages [1]
stage: # build, test, deploy defined by default [2] stage: # build, test, deploy defined by default [2]
deploy deploy
image: continuumio/anaconda3:latest
script: # use sphinx to build docs, move to public page script: # use sphinx to build docs, move to public page
- apt-get update - apt-get update
- pip install --upgrade pip - pip install --upgrade pip
......
...@@ -15,7 +15,12 @@ with open("README.md") as f: ...@@ -15,7 +15,12 @@ with open("README.md") as f:
# Getting the package version. # Getting the package version.
repo = git.cmd.Git("./") repo = git.cmd.Git("./")
v = repo.describe("--tags").split("-") v = repo.describe("--tags").split("-")
version_string = f"{v[0]}.dev{v[1]}+{v[2]}" if len(v)>1:
# Development/untagged version
version_string = f"{v[0]}.dev{v[1]}+{v[2]}"
elif len(v)==1:
# Tagged version
version_string = f"{v[0]}"
# %% Applying the information to the template # %% Applying the information to the template
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment