Skip to content

Commit 89caea0

Browse files
committed
Split up release workflow
1 parent 699526a commit 89caea0

File tree

2 files changed

+33
-25
lines changed

2 files changed

+33
-25
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,3 @@ jobs:
5353
- name: Tear down docker containers
5454
run: |
5555
docker rm -f rosbridge
56-
publish-release:
57-
name: build and deploy docs
58-
runs-on: ubuntu-latest
59-
steps:
60-
- uses: actions/checkout@v2
61-
- name: Set up Python 3.8
62-
uses: actions/setup-python@v2
63-
with:
64-
python-version: 3.8
65-
- name: 🔗 Install dependencies
66-
run: |
67-
python -m pip install --upgrade pip
68-
python -m pip install wheel
69-
- name: 💎 Install
70-
run: |
71-
python -m pip install --no-cache-dir -r requirements-dev.txt
72-
- name: 💃 Build release
73-
if: success() && startsWith(github.ref, 'refs/tags')
74-
run: |
75-
python setup.py clean --all sdist bdist_wheel
76-
- name: 📦 Publish release to PyPI
77-
if: success() && startsWith(github.ref, 'refs/tags')
78-
uses: pypa/gh-action-pypi-publish@master
79-
with:
80-
password: ${{ secrets.pypi_password }}

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish-release:
10+
name: publish release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.8
18+
- name: 🔗 Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
python -m pip install wheel
22+
- name: 💎 Install
23+
run: |
24+
python -m pip install --no-cache-dir -r requirements-dev.txt
25+
- name: 💃 Build release
26+
if: success() && startsWith(github.ref, 'refs/tags')
27+
run: |
28+
python setup.py clean --all sdist bdist_wheel
29+
- name: 📦 Publish release to PyPI
30+
if: success() && startsWith(github.ref, 'refs/tags')
31+
uses: pypa/gh-action-pypi-publish@master
32+
with:
33+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)