Skip to content

Commit a19338b

Browse files
committed
Revert "Update release.yml (#556)"
This reverts commit faa7ae4
1 parent faa7ae4 commit a19338b

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ on:
66
types: build-and-release
77

88
jobs:
9-
# release-wheel:
10-
# name: Build release wheel
11-
# runs-on: ubuntu-18.04
12-
# steps:
13-
# - uses: actions/checkout@v2
14-
# with:
15-
# ref: ${{ github.event.client_payload.branch }}
16-
# - uses: actions/setup-python@v1
17-
# with:
18-
# python-version: '3.6'
19-
# - name: Build and release wheel
20-
# run: |
21-
# pip install wheel
22-
# python setup.py bdist_wheel
23-
# - uses: pypa/gh-action-pypi-publish@master
24-
# with:
25-
# user: __token__
26-
# password: ${{ secrets.pypi_token }}
9+
release-wheel:
10+
name: Build release wheel
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.event.client_payload.branch }}
16+
- uses: actions/setup-python@v1
17+
with:
18+
python-version: '3.6'
19+
- name: Build and release wheel
20+
run: |
21+
pip install wheel
22+
python setup.py bdist_wheel
23+
- uses: pypa/gh-action-pypi-publish@master
24+
with:
25+
user: __token__
26+
password: ${{ secrets.pypi_token }}
2727
release-armory-docker:
2828
name: Build and release armory docker image
29-
# needs: [release-wheel]
29+
needs: [release-wheel]
3030
runs-on: ubuntu-18.04
3131
steps:
3232
- uses: actions/checkout@v2
@@ -40,14 +40,14 @@ jobs:
4040
python -m pip install -r requirements.txt
4141
version=$(python -c "import armory; print(armory.__version__)")
4242
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
43-
# docker pull twosixarmory/armory:latest
43+
docker pull twosixarmory/armory:latest
4444
bash docker/build.sh armory
4545
docker push twosixarmory/armory:${version}
4646
docker tag twosixarmory/armory:${version} twosixarmory/armory:latest
4747
docker push twosixarmory/armory:latest
4848
release-tf1-docker:
4949
name: Build and release tf1 docker image
50-
needs: [release-armory-docker]
50+
needs: [release-wheel]
5151
runs-on: ubuntu-18.04
5252
steps:
5353
- uses: actions/checkout@v2
@@ -62,14 +62,14 @@ jobs:
6262
version=$(python -c "import armory; print(armory.__version__)")
6363
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
6464
docker pull twosixarmory/armory:${version}
65-
# docker pull twosixarmory/tf1:latest
65+
docker pull twosixarmory/tf1:latest
6666
bash docker/build.sh tf1
6767
docker push twosixarmory/tf1:${version}
6868
docker tag twosixarmory/tf1:${version} twosixarmory/tf1:latest
6969
docker push twosixarmory/tf1:latest
7070
release-tf2-docker:
7171
name: Build and release tf2 docker image
72-
needs: [release-armory-docker]
72+
needs: [release-wheel]
7373
runs-on: ubuntu-18.04
7474
steps:
7575
- uses: actions/checkout@v2
@@ -84,14 +84,14 @@ jobs:
8484
version=$(python -c "import armory; print(armory.__version__)")
8585
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
8686
docker pull twosixarmory/armory:${version}
87-
# docker pull twosixarmory/tf2:latest
87+
docker pull twosixarmory/tf2:latest
8888
bash docker/build.sh tf2
8989
docker push twosixarmory/tf2:${version}
9090
docker tag twosixarmory/tf2:${version} twosixarmory/tf2:latest
9191
docker push twosixarmory/tf2:latest
9292
release-pytorch-docker:
9393
name: Build and release pytorch docker image
94-
needs: [release-armory-docker]
94+
needs: [release-wheel]
9595
runs-on: ubuntu-18.04
9696
steps:
9797
- uses: actions/checkout@v2
@@ -106,7 +106,7 @@ jobs:
106106
version=$(python -c "import armory; print(armory.__version__)")
107107
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
108108
docker pull twosixarmory/armory:${version}
109-
# docker pull twosixarmory/pytorch:latest
109+
docker pull twosixarmory/pytorch:latest
110110
bash docker/build.sh pytorch
111111
docker push twosixarmory/pytorch:${version}
112112
docker tag twosixarmory/pytorch:${version} twosixarmory/pytorch:latest

0 commit comments

Comments
 (0)