feat: Added correct notation for the branch

This commit is contained in:
Bart van der Braak 2023-06-11 01:26:52 +02:00
parent e104b3adc0
commit bb718ae289

View file

@ -17,7 +17,7 @@ jobs:
if: github.event.deployment_status.state == 'success'
environment:
name: github-pages
url: https://${{ github.repository_owner }}.github.io/${{ github.head_ref }}/
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ steps.git-branch.outputs.SOURCE_REF }}
runs-on: ubuntu-latest
steps:
- name: Check out
@ -47,12 +47,12 @@ jobs:
unlighthouse-ci \
--site "${{ github.event.deployment_status.target_url }}" \
--build-static \
--router-prefix "${{ github.event.repository.name }}/${{ github.head_ref }}"
--router-prefix "${{ github.event.repository.name }}/${{ steps.git-branch.outputs.SOURCE_REF }}"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_PAGES_TOKEN }}
publish_dir: ./.unlighthouse
destination_dir: ${{ github.head_ref }}
destination_dir: ${{ steps.git-branch.outputs.SOURCE_REF }}