Skip to content

Commit

Permalink
versioning workflows updates
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelduranfrigola committed Jun 14, 2023
1 parent 77bb4ef commit 290d931
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ersilia-base-image-to-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Upload Ersilia base image to DockerHub
on:
workflow_dispatch:
push:
tags:
- 'v*'

workflow_run:
workflows: ["Tag to version"]
types:
- completed
jobs:
upload_ersilia_base_to_dockerhub:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -32,6 +32,11 @@ jobs:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Get version
run: |
wget https://raw.githubusercontent.com/ersilia-os/ersilia/master/ersilia/_static_version.py
mv _static_version.py ersilia/.
- name: Copy Dockerfile to base directory
run: |
cp dockerfiles/model-deploy/base/* .
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
name: Upload Python Package

on:
push:
tags:
- '*'

workflow_dispatch:
workflow_run:
workflows: ["Tag to version"]
types:
- completed

jobs:
deploy:
Expand All @@ -24,6 +23,11 @@ jobs:
python-version: '3.7'
# cache: 'pip' # caching pip dependencies

- name: Get version
run: |
wget https://raw.githubusercontent.com/ersilia-os/ersilia/master/ersilia/_static_version.py
mv _static_version.py ersilia/.
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 290d931

Please sign in to comment.