File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ name: Deploy
44on :
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
1415permissions :
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}"
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]
You can’t perform that action at this time.
0 commit comments