Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,28 @@ jobs:
shell: pwsh
run: npm run check:pages-root

- name: Setup Pages
if: github.event_name != 'push'
uses: actions/configure-pages@v5

- name: Upload built site
if: github.event_name != 'push'
uses: actions/upload-pages-artifact@v3
with:
path: './dist'

- name: Deploy to GitHub Pages
if: github.event_name != 'push'
id: deployment
uses: actions/deploy-pages@v4

- name: Verify published site
if: github.event_name != 'push'
shell: pwsh
env:
PAGES_URL: ${{ steps.deployment.outputs.page_url }}
run: node scripts/verify-deployed-site.mjs "$env:PAGES_URL"

- name: Commit updated ratings and published site
shell: pwsh
env:
Expand All @@ -120,21 +142,3 @@ jobs:
if ($LASTEXITCODE -ne 0) { throw 'Could not commit published changes.' }
git push origin "HEAD:refs/heads/$env:TARGET_BRANCH"
if ($LASTEXITCODE -ne 0) { throw 'Could not push published changes.' }

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload built site
uses: actions/upload-pages-artifact@v3
with:
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

- name: Verify published site
shell: pwsh
env:
PAGES_URL: ${{ steps.deployment.outputs.page_url }}
run: node scripts/verify-deployed-site.mjs "$env:PAGES_URL"
Loading