4141 - name : Install dependencies
4242 run : |
4343 python -m pip install --upgrade pip wheel setuptools pipenv
44+ rm ./script_runner/version.py
4445 # pipenv lock --dev --requirements > requirements.dev.txt
4546 # pip install -r requirements.txt
4647 # - name: Lint with flake8
@@ -52,11 +53,16 @@ jobs:
5253 # - name: Test with pytest
5354 # run: |
5455 # pytest
56+ - name : Inject package version
57+ uses : nowactions/envsubst@v1
58+ with :
59+ input : ./script_runner/version.py.tmpl
60+ output : ./script_runner/version.py
61+ env :
62+ SCRIPT_RUNNER_VERSION : ${{ steps.prep.outputs.version }}
5563 - name : Build python package
5664 run : |
5765 python setup.py sdist
58- env :
59- SCRIPT_RUNNER_VERSION : ${{ steps.prep.outputs.version }}
6066 - name : Deploy to PyPI
6167 if : success() && startsWith(github.ref, 'refs/tags')
6268 uses : pypa/gh-action-pypi-publish@release/v1
@@ -131,7 +137,7 @@ jobs:
131137 publish-docker-example :
132138 needs : publish-pypi
133139 if : startsWith(github.ref, 'refs/tags')
134- name : Build and push script-runner-server- example docker image
140+ name : Publish script-runner-example to dockerhub
135141 runs-on : ubuntu-latest
136142 steps :
137143 - name : Check out the repo
@@ -192,7 +198,7 @@ jobs:
192198 deploy-aws-example :
193199 needs : publish-docker-example
194200 if : startsWith(github.ref, 'refs/tags')
195- name : Deploy swabseq-analysis -example to AWS
201+ name : Deploy script-runner -example to AWS
196202 runs-on : ubuntu-latest
197203 steps :
198204 - name : Check out the repo
@@ -295,7 +301,7 @@ jobs:
295301 deploy-azure-example :
296302 needs : publish-docker-example
297303 if : startsWith(github.ref, 'refs/tags')
298- name : Deploy swabseq-analysis -example to Azure
304+ name : Deploy script-runner -example to Azure
299305 runs-on : ubuntu-latest
300306 steps :
301307 - name : Check out the repo
0 commit comments