mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-27 02:35:50 -04:00
Update post-deploy.yml
This commit is contained in:
22
.github/workflows/post-deploy.yml
vendored
22
.github/workflows/post-deploy.yml
vendored
@@ -42,23 +42,19 @@ jobs:
|
|||||||
echo "env: ${{ github.event.deployment_status.environment }}"
|
echo "env: ${{ github.event.deployment_status.environment }}"
|
||||||
echo "url: ${{ github.event.deployment_status.target_url }}"
|
echo "url: ${{ github.event.deployment_status.target_url }}"
|
||||||
- if: github.event.deployment_status.environment == 'production'
|
- if: github.event.deployment_status.environment == 'production'
|
||||||
continue-on-error: true
|
|
||||||
env:
|
|
||||||
BASE_URL: https://jarv.is
|
|
||||||
LHCI_BUILD_CONTEXT__CURRENT_BRANCH: main
|
|
||||||
run: |
|
run: |
|
||||||
lhci autorun \
|
echo "BASE_DEPLOY_URL=https://jarv.is" >> $GITHUB_ENV
|
||||||
--collect.url=$BASE_URL/ \
|
echo "LHCI_BUILD_CONTEXT__CURRENT_BRANCH=main" >> $GITHUB_ENV
|
||||||
--collect.url=$BASE_URL/notes/how-to-pull-request-fork-github/
|
|
||||||
- if: github.event.deployment_status.environment == 'preview'
|
- if: github.event.deployment_status.environment == 'preview'
|
||||||
continue-on-error: true
|
run: |
|
||||||
env:
|
echo "BASE_DEPLOY_URL=${{ github.event.deployment_status.target_url }}" >> $GITHUB_ENV
|
||||||
BASE_URL: ${{ github.event.deployment_status.target_url }}
|
echo "LHCI_BUILD_CONTEXT__CURRENT_BRANCH=${{ github.event.deployment.ref }}" >> $GITHUB_ENV
|
||||||
LHCI_BUILD_CONTEXT__CURRENT_BRANCH: ${{ github.event.deployment.ref }}
|
- continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
lhci autorun \
|
lhci autorun \
|
||||||
--collect.url=$BASE_URL/ \
|
--collect.url=${{ env.BASE_DEPLOY_URL }}/ \
|
||||||
--collect.url=$BASE_URL/notes/how-to-pull-request-fork-github/
|
--collect.url=${{ env.BASE_DEPLOY_URL }}/notes/how-to-pull-request-fork-github/ \
|
||||||
|
--collect.url=${{ env.BASE_DEPLOY_URL }}/projects/
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: lhci-results
|
name: lhci-results
|
||||||
|
|||||||
Reference in New Issue
Block a user