Skip to content

Commit 644c236

Browse files
author
mbarber
committed
test gha
1 parent b95da33 commit 644c236

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/s3.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,26 @@ on:
55
branches:
66
- develop
77
- prod
8+
- test
89

910
jobs:
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: |
@@ -48,6 +62,8 @@ jobs:
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
@@ -61,6 +77,8 @@ jobs:
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

meta.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: openprotein_python
3-
version: 0.1.1b8
3+
version: 0.1.2
44

55
source:
66
path: ./
@@ -11,9 +11,11 @@ build:
1111
requirements:
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

0 commit comments

Comments
 (0)