4848 name : deploy-package-docs
4949 url : ${{ env.ENV_URL }}
5050 env :
51- TARGET : ${{ github.event.inputs.deployment-environment }}
5251 DEST_REPO : ansible-community/package-doc-builds
5352 USER_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
5453 USER_NAME : " github-actions[bot]"
@@ -65,16 +64,16 @@ jobs:
6564 --one-top-level
6665
6766 - name : Set the production branch and url
68- if : env.TARGET == 'production'
67+ if : inputs.deployment-environment == 'production'
6968 env :
70- BRANCH_NAME : ${{ github.event. inputs.ansible-package-version }}
69+ BRANCH_NAME : ${{ inputs.ansible-package-version }}
7170 PROD_URL : https://ansible.readthedocs.io/projects/ansible
7271 run : |
7372 echo "BRANCH=${BRANCH_NAME}" >> "${GITHUB_ENV}"
7473 echo "ENV_URL=${PROD_URL}/${BRANCH_NAME}" >> "${GITHUB_ENV}"
7574
7675 - name : Set the test branch and url
77- if : env.TARGET == 'test'
76+ if : inputs.deployment-environment == 'test'
7877 env :
7978 TEST_URL : https://ansible-community.github.io/package-doc-builds
8079 run : |
@@ -98,12 +97,10 @@ jobs:
9897 deploy-directory/docs
9998
10099 - name : Create a norobots.txt file for the test site
101- if : env.TARGET == 'test'
100+ if : inputs.deployment-environment == 'test'
102101 run : |
103- touch norobots.txt
104- echo "User-agent: *" > norobots.txt
105- echo "Disallow: /" >> norobots.txt
106- working-directory : deploy-directory/docs
102+ echo "User-agent: *" > deploy-directory/docs/norobots.txt
103+ echo "Disallow: /" >> deploy-directory/docs/norobots.txt
107104
108105 - name : Configure the git user
109106 run : |
0 commit comments