File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - develop
77 - prod
8+ - test
89
910jobs :
1011 build_and_sync :
1112 runs-on : ubuntu-latest
1213 steps :
1314 - uses : actions/checkout@v1
15+
16+ - name : Install Poetry
17+ run : |
18+ curl -sSL https://install.python-poetry.org | python -
19+
20+ - name : Create and push tag on prod branch
21+ if : github.ref == 'refs/heads/test'
22+ run : |
23+ VERSION=$(poetry version -s)
24+ git config --local user.email "[email protected] " 25+ git config --local user.name "GitHub Action"
26+ git tag $VERSION
27+ git push origin $VERSION
1428
1529 - name : Install Pandoc
1630 run : |
4862 then bucket=openprotein-docs-dev; \
4963 elif [ $branch == 'prod' ]; \
5064 then bucket=openprotein-docs-prod; \
65+ elif [ $branch == 'test' ]; \
66+ then bucket=openprotein-docs-dev; \
5167 else exit 1; fi; \
5268 echo $bucket; \
5369 echo "bucket=$bucket" >> $GITHUB_OUTPUT
6177 then dist=E3SMW2DYY71HHW; \
6278 elif [ $branch == 'prod' ]; \
6379 then dist=E1CUT1CP31D5NK; \
80+ elif [ $branch == 'test' ]; \
81+ then dist=E3SMW2DYY71HHW; \
6482 else exit 1; fi; \
6583 echo $dist; \
6684 echo "dist=$dist" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 11package :
22 name : openprotein_python
3- version : 0.1.1b8
3+ version : 0.1.2
44
55source :
66 path : ./
@@ -11,9 +11,11 @@ build:
1111requirements :
1212 build :
1313 - python >=3.7
14+ - poetry
1415 host :
1516 - python >=3.7
1617 - pip
18+ - poetry
1719 run :
1820 - python >=3.7
1921 - requests >=2.0
You can’t perform that action at this time.
0 commit comments