Skip to content

Commit f2905a4

Browse files
authored
Add build command to Python/PHP clients and denote 'contract' (#1292)
* Add a build command to the Python and PHP clients * Warn about changing inputs (since separate repos)
1 parent b5ce804 commit f2905a4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ name: Deploy
44
on:
55
workflow_dispatch:
66
inputs:
7-
command:
7+
command: # be careful when editing these, fusionauth-app expects certain commands
88
type: choice
99
options:
10+
- build # build only
1011
- publish # build & publish to pypi
1112
- release # build & release to svn
12-
default: publish
13+
default: build
1314

1415
permissions:
1516
contents: read
@@ -49,14 +50,18 @@ jobs:
4950
21=${JAVA_HOME}
5051
EOF
5152
53+
### Everything below this line will only run on a workflow_dispatch publish or release
54+
5255
- name: set aws credentials
56+
if: inputs.command == 'release' || inputs.command == 'publish'
5357
uses: aws-actions/configure-aws-credentials@v4
5458
with:
5559
role-to-assume: arn:aws:iam::752443094709:role/gha-fusionauth-python-client
5660
role-session-name: aws-auth-action
5761
aws-region: us-west-2
5862

5963
- name: get secret
64+
if: inputs.command == 'release' || inputs.command == 'publish'
6065
run: |
6166
while IFS=$'\t' read -r key value; do
6267
echo "::add-mask::${value}"
@@ -69,6 +74,7 @@ jobs:
6974
jq -r 'to_entries[] | [.key, .value] | @tsv')
7075
7176
- name: set pypi credentials
77+
if: inputs.command == 'publish'
7278
run: |
7379
cat << EOF > ~/.pypirc
7480
[distutils]

0 commit comments

Comments
 (0)