5959 with :
6060 ref : ${{ env.COMMIT_SHA }}
6161 - name : Set pending commit status
62+ if : ${{ !github.event.schedule }}
6263 id : set-pending-status
6364 run : |
6465 echo "timestamp=$(date +%s)" >> $GITHUB_OUTPUT
@@ -136,14 +137,15 @@ jobs:
136137 FAUCET_ADDRESS : ${{vars.FAUCET_ADDRESS}}
137138 CARDANOAPI_METADATA_URL : ${{vars.CARDANOAPI_METADATA_URL}}
138139 FAUCET_PAYMENT_PRIVATE : ${{secrets.FAUCET_PAYMENT_PRIVATE}}
139- FAUCET_STAKE_PKH : ${{secrets.FAUCET_STAKE_PKH }}
140+ FAUCET_STAKE_PRIVATE : ${{secrets.FAUCET_STAKE_PRIVATE }}
140141
141142 publish-report :
142143 runs-on : ubuntu-latest
143144 if : always() && needs.integration-tests.result != 'skipped'
144145 needs : integration-tests
145146 outputs :
146147 report_number : ${{ steps.report-details.outputs.report_number }}
148+ group_name : ${{ steps.set-deployment-url.outputs.group_name }}
147149 steps :
148150 - uses : actions/checkout@v4
149151 - name : Download report
@@ -161,27 +163,18 @@ jobs:
161163 repository : ${{vars.GH_PAGES}}
162164 ssh-key : ${{ secrets.DEPLOY_KEY }}
163165
166+ - name : Set Deployment Environment
167+ id : set-deployment-url
168+ run : |
169+ chmod +x .github/scripts/set_deployment_environment.sh
170+ .github/scripts/set_deployment_environment.sh
171+
164172 - name : Remove oldest report to save space
165173 if : ${{success()}}
166174 run : |
167175 chmod +x .github/scripts/remove_oldest_report.sh
168176 .github/scripts/remove_oldest_report.sh
169177
170- - name : Register report
171- id : register-project
172- if : ${{success()}}
173- run : |
174- chmod +x .github/scripts/register_report.sh
175- .github/scripts/register_report.sh
176-
177- - if : steps.register-project.outputs.project_exists != 'true'
178- uses : JamesIves/github-pages-deploy-action@v4
179- with :
180- ssh-key : ${{ secrets.DEPLOY_KEY }}
181- repository-name : ${{vars.GH_PAGES}}
182- branch : gh-pages
183- folder : project
184-
185178 - name : Generate report details
186179 id : report-details
187180 run : |
@@ -194,7 +187,7 @@ jobs:
194187 id : allure-report
195188 with :
196189 allure_results : allure-results
197- gh_pages : gh-pages/${{env.REPORT_NAME}}
190+ gh_pages : gh-pages/${{steps.set-deployment-url.outputs.group_name}}/${{ env.REPORT_NAME}}
198191 allure_report : allure-report
199192 allure_history : allure-history
200193 keep_reports : 2000
@@ -213,7 +206,7 @@ jobs:
213206 repository-name : ${{vars.GH_PAGES}}
214207 branch : gh-pages
215208 folder : build
216- target-folder : ${{ env.REPORT_NAME }}
209+ target-folder : ${{steps.set-deployment-url.outputs.group_name}}/${{ env.REPORT_NAME }}
217210
218211 publish-status :
219212 runs-on : ubuntu-latest
@@ -226,8 +219,9 @@ jobs:
226219 with :
227220 name : allure-results
228221 path : allure-results
222+
229223 - name : Set Commit Status
230- if : always()
224+ if : always() && !github.event.schedule
231225 run : |
232226 chmod +x .github/scripts/set_commit_status.sh
233227 .github/scripts/set_commit_status.sh
@@ -236,8 +230,10 @@ jobs:
236230 TEST_STATUS : ${{ needs.integration-tests.outputs.status }}
237231 REPORT_NUMBER : ${{ needs.publish-report.outputs.report_number }}
238232 GITHUB_TOKEN : ${{ github.token }}
233+ GROUP_NAME : ${{ needs.publish-report.outputs.group_name }}
239234env :
240235 HOST_URL : https://${{ github.event.schedule && 'preview.gov.tools' || (inputs.deployment || 'govtool.cardanoapi.io') }}
236+ DEPLOYMENT : ${{ github.event.schedule && 'preview.gov.tools' || inputs.deployment || 'govtool.cardanoapi.io'}}
241237 REPORT_NAME : ${{ github.event.schedule && 'nightly-'}}govtool-frontend
242238 GH_PAGES : ${{vars.GH_PAGES}}
243239 COMMIT_SHA : ${{ github.event.workflow_run.head_sha || github.sha }}
0 commit comments