File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: Build And Test CWMS Data API
33on :
44 push :
55 branches :
6- - test
6+ - prod
77 pull_request :
88 branches :
9- - test
9+ - prod
1010
1111jobs :
1212 build :
Original file line number Diff line number Diff line change 3232 required : true
3333 description : Which Branch to make the build from
3434 options :
35- - test
35+ - prod
3636 nightly :
3737 type : boolean
3838 required : true
7676 - name : Create GitHub Release
7777 id : create_release
7878 # Allow testing without creating a release
79- if : github.event_name != 'pull_request' && (github.event.ref == 'refs/heads/test ' || startsWith(github.event.ref, 'refs/tags'))
79+ if : github.event_name != 'pull_request' && (github.event.ref == 'refs/heads/prod ' || startsWith(github.event.ref, 'refs/tags'))
8080 uses : softprops/action-gh-release@v2.3.2
8181 with :
8282 files : cwms-data-api/build/libs/cwms-data-api-${{env.VERSION}}.war
@@ -133,7 +133,7 @@ jobs:
133133 uses : ./.github/actions/database-migration-image
134134 with :
135135 base-image : ghcr.io/hydrologicengineeringcenter/cwms-database/cwms/schema_installer
136- tag : latest-dev
136+ tag : latest
137137 - name : Publish migration container
138138 id : migration-publish
139139 run : |
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ name: Tagged Release
33on :
44 push :
55 tags :
6+ - ' [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]'
67 # mark as test allow additional releases within a day with
78 # a marker after test.
8- - ' [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]-test [a-z]*'
9+ - ' [0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]-[a-z]*'
910jobs :
1011 release :
1112 uses : ./.github/workflows/release.yml
You can’t perform that action at this time.
0 commit comments