Skip to content

Commit b561c8b

Browse files
committed
Split test and deploy
1 parent f26dca2 commit b561c8b

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: webviz-subsurface
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
webviz-subsurface:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 📖 Checkout commit locally
13+
uses: actions/checkout@v4
14+
15+
- name: 🐍 Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
20+
- name: 🚢 Build and deploy Python package
21+
env:
22+
TWINE_USERNAME: __token__
23+
TWINE_PASSWORD: ${{ secrets.pypi_webviz_token }}
24+
run: |
25+
python -m pip install --upgrade build twine
26+
python -m build
27+
twine upload dist/*

.github/workflows/subsurface.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,6 @@ jobs:
129129
echo ${{ secrets.review_docker_registry_token }} | docker login ${{ secrets.review_docker_registry_url }} --username ${{ secrets.review_docker_registry_username }} --password-stdin
130130
docker push ${{ secrets.review_docker_registry_url }}/${{ secrets.review_container_name }}
131131
132-
- name: 🚢 Build and deploy Python package
133-
if: github.event_name == 'release' && matrix.python-version == '3.11'
134-
env:
135-
TWINE_USERNAME: __token__
136-
TWINE_PASSWORD: ${{ secrets.pypi_webviz_token }}
137-
run: |
138-
python -m pip install --upgrade build twine
139-
python -m build
140-
twine upload dist/*
141-
142132
- name: 📚 Update GitHub pages
143133
if: github.event_name == 'release' && matrix.python-version == '3.11'
144134
run: |

0 commit comments

Comments
 (0)